Is there any way to get clang::SourceLocation
for every #include
in file by its clang::FileID
or clang::FileEntry
or something?
相关问题
- How to include FFI in OS X?
- AddressSanitizer blacklist in c++ not working
-
Apple Clang and numeric_limits
::max() is - Why clang missing default argument on parameter pa
- One large include file or several smaller ones?
相关文章
- How do I generate an AST from a string of C++ usin
- Identify which file has included some particular h
- clang error: non-type template argument refers to
- Swift and Objective-c framework exposes its intern
- String concatenation for include path
- Is possible to split PHP configuration file php.in
- Compiling a .C file: Undefined symbols for archite
- (Optimization?) Bug regarding GCC std::thread
What about using source manager's GetIncludedLoc function which takes fileid as parameter.
SourceManager.GetIncludedLoc(fileid)
Thank's @Hemant for your answer, you're right
I Already found that by myself (in clang 3.8 it is called
getIncludeLoc
) but forgot to write here. I used this to find the location after all #includes where i can put my own. Here's the function (For sure not the best way) I wrote for this, hope it helps someoneAlso some information about includes can be get by
and