Go to file
Hubert Tong 0deb694d94 Improved error recovery for _Pragma
Summary:
Currently, if the argument to _Pragma is not a parenthesised string
literal, the bad token will be consumed, as well as the ')', if present.
If additional bad tokens are passed to the _Pragma, this results in
extra error messages which may distract from the true problem.

The proposed patch causes all tokens to be consumed until the closing
')' or a new line, whichever is reached first.

Reviewers: hfinkel, rsmith

Subscribers: hubert.reinterpretcast, fraggamuffin, rnk, cfe-commits

Differential Revision: http://reviews.llvm.org/D8308

Patch by Rachel Craik!

llvm-svn: 243692
2015-07-30 21:30:00 +00:00
clang Improved error recovery for _Pragma 2015-07-30 21:30:00 +00:00
clang-tools-extra Move an extra switch to clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp from check_clang_tidy.sh. 2015-07-28 22:41:04 +00:00
compiler-rt [dfsan] Enable dfsan for aarch64 2015-07-30 21:13:21 +00:00
debuginfo-tests
libclc Fix double implementation of log 2015-07-24 18:07:14 +00:00
libcxx Fix PR#24267. use numeric_limits::max instead of ~0 for 'all ones', since that might give wrong answers on a 1's complement machine. 2015-07-30 18:26:34 +00:00
libcxxabi [libcxxabi][mips] Correct float_data::mangled_size for all ABI's. 2015-07-30 16:11:04 +00:00
libunwind [libunwind] Flip order of extern "C" and attribute(visibility) 2015-07-24 19:29:05 +00:00
lld Remove trailing whitespace. 2015-07-30 20:47:17 +00:00
lldb Convert the ScriptInterpreter system to a plugin-based one. 2015-07-30 20:28:07 +00:00
llgo [llgo] build llgoi by default 2015-07-21 00:47:18 +00:00
llvm [libFuzzer] fix the strncmp interceptor -- it should respect short strings. 2015-07-30 21:22:22 +00:00
openmp Update Build_With_CMake.txt to reflect changes in CMake refactor 2015-07-27 16:23:42 +00:00
polly Move computations out of constructors 2015-07-30 19:27:04 +00:00