diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-19 17:13:17 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-19 17:13:17 +0000 |
commit | aa0b94a2d8fba8ff1955476e0ee63da8bac0733f (patch) | |
tree | e092273ef2bc3f23ee4b5a3467988854862cf2fa /clang/lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | 25b555a6bfb248507889d3342cb175146a826bcb (diff) | |
download | bcm5719-llvm-aa0b94a2d8fba8ff1955476e0ee63da8bac0733f.tar.gz bcm5719-llvm-aa0b94a2d8fba8ff1955476e0ee63da8bac0733f.zip |
Keep the parentheses in #pragma message (partial revert of r179771).
llvm-svn: 179862
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | clang/lib/Frontend/PrintPreprocessedOutput.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp index 6d7a1db7379..3cef68df32c 100644 --- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp @@ -419,7 +419,7 @@ void PrintPPOutputPPCallbacks::PragmaMessage(SourceLocation Loc, OS << Namespace << ' '; switch (Kind) { case PMK_Message: - OS << "message \""; + OS << "message(\""; break; case PMK_Warning: OS << "warning \""; @@ -440,6 +440,8 @@ void PrintPPOutputPPCallbacks::PragmaMessage(SourceLocation Loc, << (char)('0'+ ((Char >> 0) & 7)); } OS << '"'; + if (Kind == PMK_Message) + OS << ')'; setEmittedDirectiveOnThisLine(); } |