diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-08-12 15:57:25 -0700 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2016-08-23 16:27:24 +0000 |
commit | e2ead846c1d78a6e7108e521ffd15850bd9eed3c (patch) | |
tree | 31300a0c23cef96458ff4c2da2fca0c0d636a741 /BitWriter_2_9_func | |
parent | b37f22134863a0b73838640070fd25e02ca7e195 (diff) | |
download | slang-e2ead846c1d78a6e7108e521ffd15850bd9eed3c.tar.gz |
Fix clang-tidy warnings in slang.
These are proposed changes, looking for upstream changes.
* Add explicit keyword to conversion constructors.
Bug: 28341362
* Use const reference type for read-only parameters.
Bug: 30407689
* Use const reference type to avoid unnecessary copy.
Bug: 30413862
Test: build with WITH_TIDY=1
Change-Id: I2aeba0ff19fe0581d9c177d9b340e4402fdad3f9
Diffstat (limited to 'BitWriter_2_9_func')
-rw-r--r-- | BitWriter_2_9_func/ValueEnumerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BitWriter_2_9_func/ValueEnumerator.h b/BitWriter_2_9_func/ValueEnumerator.h index 677dcd3..f26b986 100644 --- a/BitWriter_2_9_func/ValueEnumerator.h +++ b/BitWriter_2_9_func/ValueEnumerator.h @@ -97,7 +97,7 @@ private: ValueEnumerator(const ValueEnumerator &) = delete; void operator=(const ValueEnumerator &) = delete; public: - ValueEnumerator(const llvm::Module &M); + explicit ValueEnumerator(const llvm::Module &M); void dump() const; void print(llvm::raw_ostream &OS, const ValueMapType &Map, const char *Name) const; |