]> granicus.if.org Git - clang/commit
Remove limits on the number of fix-it hints and ranges in the DiagnosticsEngine.
authorAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 19:56:11 +0000 (19:56 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 19:56:11 +0000 (19:56 +0000)
commitc2f2b74ec2885c7a6f2a96a4626bac42269fbcf6
tree65a23facd270401a144e869427dc968cce99612d
parent3c19b124a8004cc5a1371a720692df6b6469fa32
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
include/clang/Basic/Diagnostic.h
include/clang/Basic/PartialDiagnostic.h
lib/Basic/Diagnostic.cpp
lib/Frontend/SerializedDiagnosticPrinter.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
lib/Lex/LiteralSupport.cpp
lib/Lex/PPMacroExpansion.cpp