diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 10:46:20 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 10:46:20 +0000 |
commit | 4d9c4a9b2346f522d08b3bada0dee8308be430a1 (patch) | |
tree | b579ce28651fed751895d934fcd0bc9f84695bf8 /lib/Index | |
parent | 6f9ac26e2fa7d29587e1009ed458a11e54ac40a2 (diff) | |
download | clang-4d9c4a9b2346f522d08b3bada0dee8308be430a1.tar.gz |
Replace double negation of !FileID.isInvalid() with FileID.isValid().
+couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index')
-rw-r--r-- | lib/Index/CommentToXML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/CommentToXML.cpp b/lib/Index/CommentToXML.cpp index d5c225ecad..15f1696cbe 100644 --- a/lib/Index/CommentToXML.cpp +++ b/lib/Index/CommentToXML.cpp @@ -894,7 +894,7 @@ void CommentASTToXMLConverter::visitFullComment(const FullComment *C) { FileID FID = LocInfo.first; unsigned FileOffset = LocInfo.second; - if (!FID.isInvalid()) { + if (FID.isValid()) { if (const FileEntry *FE = SM.getFileEntryForID(FID)) { Result << " file=\""; appendToResultWithXMLEscaping(FE->getName()); |