[AST] Refactor propagation of dependency bits. NFC
authorIlya Biryukov <ibiryukov@google.com>
Mon, 2 Mar 2020 15:07:09 +0000 (16:07 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 4 Mar 2020 10:25:17 +0000 (11:25 +0100)
commitec3060c72de6ab6992269318d92764199856e5fe
tree4353d102613f9ec4a48497cf4eaa264b80db0b7d
parent670a40360ed4765b1afa9270c192f08c3d325071
[AST] Refactor propagation of dependency bits. NFC

Summary:
This changes introduces an enum to represent dependencies as a bitmask
and extract common patterns from code that computes dependency bits into
helper functions.

Reviewers: rsmith, martong, shafik, ilya-biryukov, hokein

Subscribers: hokein, sammccall, Mordante, riccibruno, merge_guards_bot, rnkovacs, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71920
18 files changed:
clang/include/clang/AST/DependencyFlags.h [new file with mode: 0644]
clang/include/clang/AST/Expr.h
clang/include/clang/AST/ExprConcepts.h
clang/include/clang/AST/NestedNameSpecifier.h
clang/include/clang/AST/Stmt.h
clang/include/clang/AST/TemplateBase.h
clang/include/clang/AST/TemplateName.h
clang/include/clang/AST/Type.h
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/Expr.cpp
clang/lib/AST/ExprCXX.cpp
clang/lib/AST/ExprConcepts.cpp
clang/lib/AST/ExprObjC.cpp
clang/lib/AST/NestedNameSpecifier.cpp
clang/lib/AST/TemplateBase.cpp
clang/lib/AST/TemplateName.cpp
clang/lib/Sema/SemaOverload.cpp
clang/lib/Serialization/ASTReaderStmt.cpp