llvm-project/clang/test
Alex Lorenz ebbbb81266 [refactor][extract] insert semicolons into extracted/inserted code
when needed

This commit implements the semicolon insertion logic into the extract
refactoring. The following rules are used:

- extracting expression: add terminating ';' to the extracted function.
- extracting statements that don't require terminating ';' (e.g. switch): add
  terminating ';' to the callee.
- extracting statements with ';':  move (if possible) the original ';' from the
  callee and add terminating ';'.
- otherwise, add ';' to both places.

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

llvm-svn: 317343
2017-11-03 18:11:22 +00:00
..
ARCMT clang/test/ARCMT/remap-applying.c: Use %/s on the command line of echo(1). 2017-04-28 05:02:52 +00:00
ASTMerge
Analysis [analyzer] do not crash on libcxx03 call_once implementation 2017-11-03 00:36:03 +00:00
CXX Fix missing -Wregister warning when 'register' is applied to a function parameter. 2017-11-01 23:38:37 +00:00
CodeCompletion Fixed a crash in code completion. 2017-09-08 13:36:38 +00:00
CodeGen [CodeGen] add libcall attr tests to show errno-related diffs; NFC 2017-11-03 16:27:27 +00:00
CodeGenCUDA CodeGenModule: Always output wchar_size, check LLVM assumptions. 2017-05-20 01:29:55 +00:00
CodeGenCXX [c++17] Visit class template explicit specializations just like all other class definitions in codegen. 2017-11-03 01:26:01 +00:00
CodeGenCoroutines [coroutines] Support coroutine-handle returning await-suspend (i.e symmetric control transfer) 2017-08-25 04:46:54 +00:00
CodeGenObjC [CodeGen] Add support for IncompleteArrayType in Obj-C ivars. 2017-10-27 00:56:23 +00:00
CodeGenObjCXX Fix off-by-one error in block mangling. 2017-09-07 05:41:24 +00:00
CodeGenOpenCL CodeGen: Fix missing debug loc due to alloca 2017-10-24 19:14:43 +00:00
Coverage [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
CoverageMapping [Coverage] Discard deferred region in closing if-else 2017-10-17 07:47:39 +00:00
Driver [Driver] Add Scudo as a possible -fsanitize= option 2017-11-03 17:04:13 +00:00
FixIt Add a "vexing parse" warning for ambiguity between a variable declaration and a 2017-09-29 23:57:25 +00:00
Format [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Frontend Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData. 2017-09-22 00:11:15 +00:00
Headers Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
Import Add support for remembering origins to ExternalASTMerger 2017-09-27 19:57:58 +00:00
Index [preamble] Also record the "skipping" state of the preprocessor 2017-11-03 09:40:07 +00:00
Integration Fix the test fix from r312181 2017-08-30 23:26:38 +00:00
Layout
Lexer Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
Misc Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a proposal to add [[]] attributes to C2x, but also allows you to enable these attributes in C++98, or disable them in C++11 or later. 2017-10-15 15:01:42 +00:00
Modules Modular Codegen: Don't home always_inline functions 2017-11-02 22:28:50 +00:00
OpenMP [OPENMP] Fix PR35152: Do not use getInvokeDest() function for EH checks. 2017-11-02 18:55:05 +00:00
PCH Implement C++ [basic.link]p8. 2017-09-20 07:22:00 +00:00
Parser Fix usage of right shift operator in fold expressions 2017-10-31 20:29:22 +00:00
Preprocessor [X86] Define i586 and pentium preprocessor defines for -march=lakemont to match GCC 2017-11-01 02:18:49 +00:00
Profile [Profile] Do not assign counters to functions without bodies 2017-06-30 21:02:14 +00:00
Refactor [refactor][extract] insert semicolons into extracted/inserted code 2017-11-03 18:11:22 +00:00
Rewriter [clang] Remove unit test which uses reverse-iterate flag 2017-08-24 22:40:32 +00:00
Sema [Sema] Document+test the -Wsign-compare change for enums in C code [NFC] 2017-10-24 21:05:43 +00:00
SemaCUDA [CUDA] When compilation fails, print the compilation mode. 2017-09-07 18:37:16 +00:00
SemaCXX Fix missing -Wregister warning when 'register' is applied to a function parameter. 2017-11-01 23:38:37 +00:00
SemaObjC [Sema] Add support for flexible array members in Obj-C. 2017-10-23 22:01:41 +00:00
SemaObjCXX Typo correct the condition of 'do-while' before exiting its scope 2017-10-30 22:55:11 +00:00
SemaOpenCL [OpenCL] Restrict swizzle length check to OpenCL mode 2017-10-17 17:54:57 +00:00
SemaTemplate [Sema] Fix an assert-on-invalid by avoiding function template specialisation 2017-10-27 18:13:31 +00:00
TableGen
Tooling [clang-diff] Treat CXXCtorInitializer as a node 2017-08-27 22:52:20 +00:00
Unit [test] Fix clang-test for FreeBSD and NetBSD 2017-10-24 03:11:02 +00:00
VFS
clang-rename [clang-rename] Fix and enable the failing TemplatedClassFunction test. 2017-10-25 08:25:25 +00:00
.clang-format
CMakeLists.txt [test] Enable clang-func-mapping as a test dep with the analyzer 2017-09-22 22:17:10 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Resubmit "[lit] Raise the logic for enabling clang & lld substitutions to llvm." 2017-10-17 23:43:36 +00:00
lit.site.cfg.py.in [lit] Add host_cxx to lit config 2017-10-10 17:53:45 +00:00
make_test_dirs.pl