示例#1
0
		bool HeaderTagger::isInjectedHeader(const clang::PresumedLoc& ploc) const{
			//NOTE: the "-include" of clang is what we call injectedHeaders
			//injected headers are "included" from a file called "<command line>" (by clang)
			return std::strcmp("<command line>",ploc.getFilename()) == 0;
		}
示例#2
0
文件: Utils.cpp 项目: KDE/clazy
bool Utils::presumedLocationsEqual(const clang::PresumedLoc &l1, const clang::PresumedLoc &l2)
{
    return l1.isValid() && l2.isValid() && l1.getColumn() == l2.getColumn() &&
           l1.getLine()   == l2.getLine()   &&
            string(l1.getFilename()) == string(l2.getFilename());
}