[clang] 38d0908 - Removing a default constructor argument; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 27 06:42:22 PDT 2021
Author: Aaron Ballman
Date: 2021-09-27T09:41:28-04:00
New Revision: 38d09080c938c132279644e70001e8607a2998fb
URL: https://github.com/llvm/llvm-project/commit/38d09080c938c132279644e70001e8607a2998fb
DIFF: https://github.com/llvm/llvm-project/commit/38d09080c938c132279644e70001e8607a2998fb.diff
LOG: Removing a default constructor argument; NFC
The argument is always used with its default value, so remove the
argument entirely.
Added:
Modified:
clang/include/clang/Lex/LiteralSupport.h
clang/lib/Lex/LiteralSupport.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Lex/LiteralSupport.h b/clang/include/clang/Lex/LiteralSupport.h
index f131f045a73e..32471969f596 100644
--- a/clang/include/clang/Lex/LiteralSupport.h
+++ b/clang/include/clang/Lex/LiteralSupport.h
@@ -224,7 +224,7 @@ class StringLiteralParser {
unsigned UDSuffixOffset;
public:
StringLiteralParser(ArrayRef<Token> StringToks,
- Preprocessor &PP, bool Complain = true);
+ Preprocessor &PP);
StringLiteralParser(ArrayRef<Token> StringToks,
const SourceManager &sm, const LangOptions &features,
const TargetInfo &target,
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 78e3e7d79a24..e3ae2ebd44a0 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/lib/Lex/LiteralSupport.cpp
@@ -1654,9 +1654,9 @@ CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
///
StringLiteralParser::
StringLiteralParser(ArrayRef<Token> StringToks,
- Preprocessor &PP, bool Complain)
+ Preprocessor &PP)
: SM(PP.getSourceManager()), Features(PP.getLangOpts()),
- Target(PP.getTargetInfo()), Diags(Complain ? &PP.getDiagnostics() :nullptr),
+ Target(PP.getTargetInfo()), Diags(&PP.getDiagnostics()),
MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown),
ResultPtr(ResultBuf.data()), hadError(false), Pascal(false) {
init(StringToks);
More information about the cfe-commits
mailing list