summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/call-expr/Inputs
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-12-12 21:50:55 +0000
committerEric Fiselier <eric@efcs.ca>2018-12-12 21:50:55 +0000
commit5cdc2cda28ac86ba4ec3771341545355452fdc86 (patch)
tree6bf91ed91fd399e0dbc0afd1dcf14da1e960962f /clang/test/Import/call-expr/Inputs
parent91dfdd5734e1c0a603e17bae0dd7723d775c485a (diff)
downloadbcm5719-llvm-5cdc2cda28ac86ba4ec3771341545355452fdc86.tar.gz
bcm5719-llvm-5cdc2cda28ac86ba4ec3771341545355452fdc86.zip
[AST] Store "UsesADL" information in CallExpr.
Summary: Currently the Clang AST doesn't store information about how the callee of a CallExpr was found. Specifically if it was found using ADL. However, this information is invaluable to tooling. Consider a tool which renames usages of a function. If the originally CallExpr was formed using ADL, then the tooling may need to additionally qualify the replacement. Without information about how the callee was found, the tooling is left scratching it's head. Additionally, we want to be able to match ADL calls as quickly as possible, which means avoiding computing the answer on the fly. This patch changes `CallExpr` to store whether it's callee was found using ADL. It does not change the size of any AST nodes. Reviewers: fowles, rsmith, klimek, shafik Reviewed By: rsmith Subscribers: aaron.ballman, riccibruno, calabrese, titus, cfe-commits Differential Revision: https://reviews.llvm.org/D55534 llvm-svn: 348977
Diffstat (limited to 'clang/test/Import/call-expr/Inputs')
-rw-r--r--clang/test/Import/call-expr/Inputs/F.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Import/call-expr/Inputs/F.cpp b/clang/test/Import/call-expr/Inputs/F.cpp
new file mode 100644
index 00000000000..bd88df99ba4
--- /dev/null
+++ b/clang/test/Import/call-expr/Inputs/F.cpp
@@ -0,0 +1,10 @@
+namespace NS {
+struct X {};
+void f(X) {}
+void operator+(X, X) {}
+} // namespace NS
+void f() {
+ NS::X x;
+ f(x);
+ x + x;
+}
OpenPOWER on IntegriCloud