aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/CloneDetection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Analysis/CloneDetection.h')
-rw-r--r--include/clang/Analysis/CloneDetection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Analysis/CloneDetection.h b/include/clang/Analysis/CloneDetection.h
index 915ec58a5144..b3fb447b1ece 100644
--- a/include/clang/Analysis/CloneDetection.h
+++ b/include/clang/Analysis/CloneDetection.h
@@ -122,7 +122,8 @@ public:
/// Returns the start sourcelocation of the first statement in this sequence.
///
/// This method should only be called on a non-empty StmtSequence object.
- SourceLocation getStartLoc() const;
+ SourceLocation getStartLoc() const LLVM_READONLY { return getBeginLoc(); }
+ SourceLocation getBeginLoc() const;
/// Returns the end sourcelocation of the last statement in this sequence.
///