projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a44d48
)
Make FileCheckNumericVariable::getDefLineNumber const. NFC
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 11 Nov 2019 18:44:13 +0000
(18:44 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 11 Nov 2019 18:51:45 +0000
(18:51 +0000)
Fixes cppcheck warning.
llvm/lib/Support/FileCheckImpl.h
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/FileCheckImpl.h
b/llvm/lib/Support/FileCheckImpl.h
index 06ce8301cec4b5fe96150aca9f1b7e4debe6ad95..0fd8523bef8fe51886370ee0083621cc85ac9076 100644
(file)
--- a/
llvm/lib/Support/FileCheckImpl.h
+++ b/
llvm/lib/Support/FileCheckImpl.h
@@
-114,7
+114,7
@@
public:
/// \returns the line number where this variable is defined, if any, or None
/// if defined before input is parsed.
- Optional<size_t> getDefLineNumber() { return DefLineNumber; }
+ Optional<size_t> getDefLineNumber()
const
{ return DefLineNumber; }
};
/// Class representing the use of a numeric variable in the AST of an