aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 00:31:20 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 00:31:20 +0000
commitac836e442cbd17f33533bd0b4879258945bc1723 (patch)
tree20fa7cc1bfa21bd8c22a94499e77c032a4918e11 /lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
parent37e59a10a7a537428e5997fd5896f5b89fd34e6b (diff)
Introduce SourceManager::getMacroArgExpandedLocation function.
If we pass it a source location that points inside a function macro argument, the returned location will be the macro location in which the argument was expanded. If a macro argument is used multiple times, the expanded location will be at the first expansion of the argument. e.g. MY_MACRO(foo); ^ Passing a file location pointing at 'foo', will yield a macro location where 'foo' was expanded into. Make SourceManager::getLocation call getMacroArgExpandedLocation as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp')
0 files changed, 0 insertions, 0 deletions