Remove limits on the number of fix-it hints and ranges in the DiagnosticsEngine.
Summary: The limits on the number of fix-it hints and ranges attached to a diagnostic are arbitrary and don't apply universally to all users of the DiagnosticsEngine. The way the limits are enforced may lead to diagnostics generating invalid sets of fixes. I suggest removing the limits, which will also simplify the implementation. Reviewers: rsmith Reviewed By: rsmith Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D3879 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209468 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/Diagnostic.h 16 additions, 42 deletionsinclude/clang/Basic/Diagnostic.h
- include/clang/Basic/PartialDiagnostic.h 7 additions, 16 deletionsinclude/clang/Basic/PartialDiagnostic.h
- lib/Basic/Diagnostic.cpp 6 additions, 9 deletionslib/Basic/Diagnostic.cpp
- lib/Frontend/SerializedDiagnosticPrinter.cpp 1 addition, 2 deletionslib/Frontend/SerializedDiagnosticPrinter.cpp
- lib/Frontend/TextDiagnosticPrinter.cpp 1 addition, 2 deletionslib/Frontend/TextDiagnosticPrinter.cpp
- lib/Lex/LiteralSupport.cpp 1 addition, 2 deletionslib/Lex/LiteralSupport.cpp
- lib/Lex/PPMacroExpansion.cpp 5 additions, 16 deletionslib/Lex/PPMacroExpansion.cpp
Loading
Please register or sign in to comment