diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-21 01:47:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-21 01:47:18 +0000 |
commit | 66874fb18afbffb8b2ca05576851a64534be3352 (patch) | |
tree | d6391d232c549a7ec1e6bb31a943e468aac589d9 /tools/libclang/CIndex.cpp | |
parent | 65124fe81f61eed98b845c87e3a78a780f3deb11 (diff) |
Use None rather than Optional<T>() where possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndex.cpp')
-rw-r--r-- | tools/libclang/CIndex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 8cbb1724bf..669bb8722e 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -561,12 +561,12 @@ Optional<bool> CursorVisitor::shouldVisitCursor(CXCursor Cursor) { if (RegionOfInterest.isValid()) { SourceRange Range = getFullCursorExtent(Cursor, AU->getSourceManager()); if (Range.isInvalid()) - return Optional<bool>(); + return None; switch (CompareRegionOfInterest(Range)) { case RangeBefore: // This declaration comes before the region of interest; skip it. - return Optional<bool>(); + return None; case RangeAfter: // This declaration comes after the region of interest; we're done. |