[PATCH] D11778: Improvements on Diagnostic in Macro Expansions
Zhengkai Wu
zhengkai at google.com
Wed Aug 5 14:01:33 PDT 2015
zhengkai created this revision.
zhengkai added a reviewer: rtrieu.
zhengkai added a subscriber: cfe-commits.
Add two helper functions to check if the current macro expansion contains enough information for the error/warning message that we don't need further expansion.
Modify two test files which generates too verbose information in macros.
Add two test files. reduced-diags-macros is to check the different solutions when different error messages are generated. reduced-diags-macros-backtrace is to check the correctness of macro back trace limits in our new methods.
http://reviews.llvm.org/D11778
Files:
lib/Frontend/DiagnosticRenderer.cpp
test/Misc/diag-presumed.c
test/Misc/reduced-diags-macros-backtrace.cpp
test/Misc/reduced-diags-macros.cpp
test/Preprocessor/macro_arg_slocentry_merge.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11778.31391.patch
Type: text/x-patch
Size: 9237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150805/bd676364/attachment.bin>
More information about the cfe-commits
mailing list