diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 00:31:20 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 00:31:20 +0000 |
| commit | ac836e442cbd17f33533bd0b4879258945bc1723 (patch) | |
| tree | 20fa7cc1bfa21bd8c22a94499e77c032a4918e11 /lib/CodeGen/CodeGenModule.cpp | |
| parent | 37e59a10a7a537428e5997fd5896f5b89fd34e6b (diff) | |
| download | clang-ac836e442cbd17f33533bd0b4879258945bc1723.tar.gz clang-ac836e442cbd17f33533bd0b4879258945bc1723.tar.bz2 clang-ac836e442cbd17f33533bd0b4879258945bc1723.tar.xz | |
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/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
