llvm-project/clang/test
Ilya Biryukov b455fc429f [Preprocessor] Always discard body of #define if we failed to parse it
Summary:
Preivously we would only discard it if we failed to parse parameter lists.
If we do not consume the body, parser sees tokens inside directive. In
turn, this leads to spurious diagnostics and a crash in TokenBuffer, see
the added tests.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65517

llvm-svn: 367530
2019-08-01 09:10:37 +00:00
..
ARCMT
AST Add typedef declaration information to the JSON AST dump. 2019-07-30 13:42:19 +00:00
ASTMerge Give the 'signed/unsigned wchar_t' extension a warning flag, and follow 2019-07-29 20:00:46 +00:00
Analysis [Fix] Customize warnings for missing built-in types 2019-07-31 05:16:38 +00:00
CXX When determining whether a lambda-expression is implicitly constexpr, 2019-07-29 19:59:45 +00:00
ClangScanDeps [clang-scan-deps] use `-Wno-error` when scanning for dependencies 2019-07-03 18:01:32 +00:00
CodeCompletion Re-land "[CodeComplete] Improve overload handling for C++ qualified and ref-qualified methods." 2019-06-10 15:17:52 +00:00
CodeGen [clang][ARM] Fix msvc arm{64} builtins to use int on LP64 systems. 2019-07-31 20:42:28 +00:00
CodeGenCUDA [clang] Preserve names of addrspacecast'ed values. 2019-07-10 17:10:05 +00:00
CodeGenCXX Delay emitting dllexport explicitly defaulted members until the class is fully parsed (PR40006) 2019-08-01 08:01:09 +00:00
CodeGenCoroutines
CodeGenObjC Revert "[Sema] Diagnose default-initialization, destruction, and copying of" 2019-07-26 00:02:17 +00:00
CodeGenObjCXX [Clang] Replace cc1 options '-mdisable-fp-elim' and '-momit-leaf-frame-pointer' 2019-07-20 22:50:50 +00:00
CodeGenOpenCL AMDGPU: Add missing builtin declarations 2019-07-31 14:03:05 +00:00
CodeGenOpenCLCXX Make the CXXABIs respect the target's default calling convention. 2019-07-26 12:36:12 +00:00
Coverage Re-check in clang support gun asm goto after fixing tests. 2019-06-03 15:57:25 +00:00
CoverageMapping Remove cache for macro arg stringization 2019-07-30 17:58:22 +00:00
Driver [Driver] Support -fsanitize=function on Solaris/x86 2019-07-30 20:04:53 +00:00
FixIt [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
Format [clang-format][tests] Explicitly specify style in some tests 2019-07-12 15:56:18 +00:00
Frontend [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
Headers [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index [ASTUnit] Attempt to unbreak Windows buildbots after r366448 2019-07-18 16:24:09 +00:00
Integration
InterfaceStubs [NFC] Fix for InterfaceStubs tests (adding REQUIRES: x86-registered-target). 2019-06-20 18:28:21 +00:00
Layout P0840R2: support for [[no_unique_address]] attribute 2019-06-20 20:44:45 +00:00
Lexer ARM MTE stack sanitizer. 2019-07-15 20:02:23 +00:00
Misc Give the 'signed/unsigned wchar_t' extension a warning flag, and follow 2019-07-29 20:00:46 +00:00
Modules [Driver] Add float-divide-by-zero back to supported sanitizers after D63793/rC365272 2019-07-10 00:30:02 +00:00
OpenMP [OPENMP]Add support for analysis of reduction variables. 2019-07-26 14:50:05 +00:00
PCH Revert "[Sema] Diagnose default-initialization, destruction, and copying of" 2019-07-26 00:02:17 +00:00
Parser [Parser] Lambda capture lists can start with '*' 2019-07-30 19:21:20 +00:00
Preprocessor [Preprocessor] Always discard body of #define if we failed to parse it 2019-08-01 09:10:37 +00:00
Profile Revert "[clang][NewPM] Fix broken profile test" 2019-06-29 00:10:22 +00:00
Refactor
Rewriter
Sema [Sema] Enable -Wimplicit-float-conversion for integral to floating point precision loss 2019-08-01 01:39:21 +00:00
SemaCUDA Renamed and changed the wording of warn_cconv_ignored 2019-07-17 20:41:26 +00:00
SemaCXX [Sema] Actually map a variable template specialization from pattern to instantiation 2019-07-30 23:38:18 +00:00
SemaObjC Revert "[Sema] Diagnose default-initialization, destruction, and copying of" 2019-07-26 00:02:17 +00:00
SemaObjCXX If capturing a variable fails, add a capture anyway (and mark it 2019-05-28 23:09:44 +00:00
SemaOpenCL Add lifetime categories attributes 2019-07-25 17:50:51 +00:00
SemaOpenCLCXX [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
SemaTemplate Renamed and changed the wording of warn_cconv_ignored 2019-07-17 20:41:26 +00:00
TableGen
Templight
Tooling Recommit r363298 "[lit] Disable test on darwin when building shared libs." 2019-06-15 20:09:54 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS
clang-rename
.clang-format
CMakeLists.txt Fix breakage introduced by D60974 2019-07-01 21:57:31 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Fix a Python3 compatibility error 2019-07-11 21:45:48 +00:00
lit.site.cfg.py.in [clang][NewPM] Fixing remaining -O0 tests that are broken under new PM 2019-06-19 17:41:30 +00:00
make_test_dirs.pl