aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/SmallVectorTest.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2020-11-03 14:36:50 +0000
committerNathan James <n.james93@hotmail.co.uk>2020-11-03 14:36:51 +0000
commitb091af790f192c5532b59159fc029f9c368285c0 (patch)
tree68a6b99c611067404a14a237c73b1884218a4814 /llvm/unittests/ADT/SmallVectorTest.cpp
parentcab21d4fa8c335e002df91ee4736fc05593ed23c (diff)
downloadllvm-b091af790f192c5532b59159fc029f9c368285c0.zip
llvm-b091af790f192c5532b59159fc029f9c368285c0.tar.gz
llvm-b091af790f192c5532b59159fc029f9c368285c0.tar.bz2
[ASTMatchers] Made isExpandedFromMacro Polymorphic
Made the isExpandedFromMacro matcher work on Stmt's, TypeLocs and Decls in line with the other macro expansion matchers. Also tweaked it to take a `std::string` instead of a `StringRef`. This prevents potential use-after-free bugs if the matcher is created with a string thats destroyed before the matcher finishes matching. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D90303
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions