diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-18 16:49:37 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-18 16:49:37 +0000 |
commit | 96d93907eb84ac16eea246f459fe961a7c78c8ac (patch) | |
tree | 0dc07e083f0dde47f849381235176548aba99abd /clang/lib/Frontend | |
parent | 65ff01bccb06b12259ffa4fafc5087653187793a (diff) | |
download | bcm5719-llvm-96d93907eb84ac16eea246f459fe961a7c78c8ac.tar.gz bcm5719-llvm-96d93907eb84ac16eea246f459fe961a7c78c8ac.zip |
Dropped the parentheses for #pragma message and its kin in the -E output generator.
This was a suggestion by Jordan Rose since the documented format for these pragmas is without the parentheses. At the same time, I've increased test coverage too for the preprocessed output.
llvm-svn: 179771
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/PrintPreprocessedOutput.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp index 61f2b9e2884..6d7a1db7379 100644 --- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp @@ -419,13 +419,13 @@ void PrintPPOutputPPCallbacks::PragmaMessage(SourceLocation Loc, OS << Namespace << ' '; switch (Kind) { case PMK_Message: - OS << "message(\""; + OS << "message \""; break; case PMK_Warning: - OS << "warning(\""; + OS << "warning \""; break; case PMK_Error: - OS << "error(\""; + OS << "error \""; break; } @@ -440,8 +440,6 @@ void PrintPPOutputPPCallbacks::PragmaMessage(SourceLocation Loc, << (char)('0'+ ((Char >> 0) & 7)); } OS << '"'; - - OS << ')'; setEmittedDirectiveOnThisLine(); } |