<html>
<head></head>
<body>
<p>Hi,<br /><br />I would like to know if there is one and only one include guards in the file parsed, that is, if the file has the #ifndef directive (or the "\#if !defined" equivalent). I have been searching for the way to achieve this, but I'm really confused because there are several classes refering to include guards.<br /><br />- void clang::MultipleIncludeOpt::EnterTopLevelIfndef (<a href="http://clang.llvm.org/doxygen/classclang_1_1MultipleIncludeOpt.html#aef87b0d5364cd004dbf6335655de0f3d" target="_blank">http://clang.llvm.org/doxygen/classclang_1_1MultipleIncludeOpt.html#aef87b0d5364cd004dbf6335655de0f3d</a>)<br />- void Preprocessor::HandleDirective( Token & Result)     (<a href="http://clang.llvm.org/doxygen/classclang_1_1Preprocessor.html#ab6cb207d9606e228aac0ed63d529cfa2" target="_blank">http://clang.llvm.org/doxygen/classclang_1_1Preprocessor.html#ab6cb207d9606e228aac0ed63d529cfa2</a>)<br />- bool HeaderSearch::isFileMultipleIncludeGuarded (const FileEntry * File) (<a href="http://clang.llvm.org/doxygen/classclang_1_1HeaderSearch.html#a46e7c5c402dad28ed7df35b51ff66dd1" target="_blank">http://clang.llvm.org/doxygen/classclang_1_1HeaderSearch.html#a46e7c5c402dad28ed7df35b51ff66dd1</a>)<br />- CINDEX_LINKAGE unsigned clang_isFileMultipleIncludeGuarded (<a href="http://clang.llvm.org/doxygen/group__CINDEX__FILES.html#ga1969fe907a40d9469ea68c370d0f602a" target="_blank">http://clang.llvm.org/doxygen/group__CINDEX__FILES.html#ga1969fe907a40d9469ea68c370d0f602a</a>)<br />    <br />What is the simplest way to check this?</p>
<p>Cheers.</p>
<br/>
<br/>
</body>
</html>