llvm-project/clang/unittests/Tooling
Ilya Biryukov 0a42fe70a5 [AST] Treat semantic form of InitListExpr as implicit code in traversals
Summary:
In particular, do not traverse the semantic form if shouldVisitImplicitCode()
returns false.

This simplifies the common case of traversals, avoiding the need to
worry about some expressions being traversed twice.

No tests break after the change, the change would allow to simplify at
least one of the usages, i.e. r366070 which had to handle this in
clangd.

Reviewers: gribozavr

Reviewed By: gribozavr

Subscribers: kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 366672
2019-07-22 09:58:53 +00:00
..
RecursiveASTVisitorTests [AST] Treat semantic form of InitListExpr as implicit code in traversals 2019-07-22 09:58:53 +00:00
Syntax [Syntax] Move roles into a separate enum 2019-07-09 13:31:43 +00:00
ASTSelectionTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
CastExprTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommentHandlerTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CompilationDatabaseTest.cpp Re-land [JSONCompilationDatabase] Strip distcc/ccache/gomacc wrappers from parsed commands. 2019-07-12 23:38:31 +00:00
DiagnosticsYamlTest.cpp [test] Delete trailing spaces from YAML tests 2019-07-12 05:59:28 +00:00
ExecutionTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FixItTest.cpp [LibTooling] Add "SourceCode" library for functions relating to source-code manipulation. 2019-04-05 14:05:03 +00:00
HeaderIncludesTest.cpp [Tooling] Handle #pragma once header guard in include insertion. 2019-01-29 14:40:01 +00:00
LexicallyOrderedRecursiveASTVisitorTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LookupTest.cpp Fix gcc "-Wdangling-else" warning. NFCI. 2019-04-30 10:57:37 +00:00
QualTypeNamesTest.cpp Make getFullyQualifiedName qualify both the pointee and class type for member ptr types 2019-03-15 11:09:41 +00:00
RangeSelectorTest.cpp [LibTooling] Add `before` and `after` selectors for selecting point-ranges relative to nodes. 2019-05-29 12:40:36 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RecursiveASTVisitorTestPostOrderVisitor.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RefactoringActionRulesTest.cpp [test] Delete trailing spaces from YAML tests 2019-07-12 05:59:28 +00:00
RefactoringCallbacksTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RefactoringTest.cpp [test] Delete trailing spaces from YAML tests 2019-07-12 05:59:28 +00:00
ReplacementTest.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ReplacementsYamlTest.cpp [test] Delete trailing spaces from YAML tests 2019-07-12 05:59:28 +00:00
RewriterTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RewriterTestContext.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SourceCodeTest.cpp [LibTooling] Add function to translate and validate source range for editing 2019-07-18 17:26:57 +00:00
StencilTest.cpp [LibTooling] Update Stencil to use RangeSelector 2019-05-22 18:03:00 +00:00
TestVisitor.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ToolingTest.cpp [clang][ArgumentAdjusters] Do not add fsyntax-only if already exists 2019-07-02 10:45:53 +00:00
TransformerTest.cpp [LibTooling] Relax Transformer to allow rewriting macro expansions 2019-07-18 17:44:54 +00:00