r194849 - Fix bogus diagnostic wording. There's no such thing as a compound expression.
Richard Smith
richard-llvm at metafoo.co.uk
Fri Nov 15 13:08:45 PST 2013
Author: rsmith
Date: Fri Nov 15 15:08:45 2013
New Revision: 194849
URL: http://llvm.org/viewvc/llvm-project?rev=194849&view=rev
Log:
Fix bogus diagnostic wording. There's no such thing as a compound expression.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
cfe/trunk/test/Parser/pragma-fp-contract.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=194849&r1=194848&r2=194849&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Fri Nov 15 15:08:45 2013
@@ -797,8 +797,8 @@ def warn_pragma_unused_expected_punc : W
"expected ')' or ',' in '#pragma unused'">;
// - #pragma fp_contract
def err_pragma_fp_contract_scope : Error<
- "'#pragma fp_contract' should only appear at file scope or at the start of a "
- "compound expression">;
+ "'#pragma fp_contract' can only appear at file scope or at the start of a "
+ "compound statement">;
// - #pragma comment
def err_pragma_comment_malformed : Error<
"pragma comment requires parenthesized identifier and optional string">;
Modified: cfe/trunk/test/Parser/pragma-fp-contract.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pragma-fp-contract.c?rev=194849&r1=194848&r2=194849&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pragma-fp-contract.c (original)
+++ cfe/trunk/test/Parser/pragma-fp-contract.c Fri Nov 15 15:08:45 2013
@@ -2,7 +2,7 @@
void f1(void) {
int x = 0;
-/* expected-error at +1 {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */
+/* expected-error at +1 {{'#pragma fp_contract' can only appear at file scope or at the start of a compound statement}} */
#pragma STDC FP_CONTRACT ON
}
More information about the cfe-commits
mailing list