<div dir="ltr">Good day,<br>I have some aspects I would like confirm about reading header files in the context of LibTooling.<br>My initial idea is that clang, as a compiler framework, mainly 'works with source files'.<br>
Header files will come in during pre-processing via the #include directive.<br>But I wanted to see for myself how libtooling works with header files explicitly passed as argument. For this experiment, I used clang-check.<br>
Eventually, I came across this question:<br><a href="http://stackoverflow.com/questions/19413156/clang-cant-parse-my-h-file-standalone">http://stackoverflow.com/questions/19413156/clang-cant-parse-my-h-file-standalone</a><br>
Confirmation #1: Is there an official documentation/url/FAQ where it is written that clang treats *.h files as C header files?<br> Or rather, perhaps there is a documentation as to the list of file extensions with the description as to what actions clang will take?<br>
Confirmation #2: I tried checking the help for clang-check and I am not sure how to pass an argument similar to "-x c++" to it. Is it possible?<br>Confirmation #3: Is there a 'correct' approach with regards to libtooling and handling header files? I am planning on ignoring header files passed to my libtool.<br>
Hoping for your insights.<br>Thank you,<br>David<br><br></div>