clang-1/lib/Basic
Argyrios Kyrtzidis ac836e442c 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
2011-08-17 00:31:20 +00:00
..
Builtins.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
CMakeLists.txt Initial work to improve documentation for Clang's diagnostics, from Matthieu Monrocq 2011-04-15 22:04:17 +00:00
ConvertUTF.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
Diagnostic.cpp Make DiagnosticErrorTrap keep a count of the errors that occurred so multiple 2011-07-29 01:25:44 +00:00
DiagnosticIDs.cpp Fix C++0x narrowing conversion errors in Clang. 2011-08-13 05:47:04 +00:00
FileManager.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
FileSystemStatCache.cpp Replace all uses of PathV1::isAbsolute with PathV2::is_{absolute,relative}. 2010-12-17 21:22:22 +00:00
IdentifierTable.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
Makefile Basic: Simplify getClangRepositoryPath and getClangRevision. 2010-09-29 19:15:29 +00:00
SourceLocation.cpp Clean up as many of the comments in Basic I can find to talk in terms of 2011-07-26 05:17:23 +00:00
SourceManager.cpp Introduce SourceManager::getMacroArgExpandedLocation function. 2011-08-17 00:31:20 +00:00
TargetInfo.cpp Add partial support for using anonymous bitfields (e.g., int : 0) to enforce 2011-08-04 01:21:14 +00:00
Targets.cpp Additional comments and whitespace. 2011-08-04 17:52:43 +00:00
TokenKinds.cpp This patch adds a PUNCTUATOR macro (specialization of TOK) in TokenKinds.def and makes use of it in tok::getTokenSimpleSpelling. 2009-11-28 16:09:28 +00:00
Version.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
VersionTuple.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00