Skip to content

Commit 491d304

Browse files
committed
Use std::array
1 parent a2d0a59 commit 491d304

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang-tools-extra/clang-tidy/readability/UseConcisePreprocessorDirectivesCheck.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "clang/Lex/PPCallbacks.h"
1313
#include "clang/Lex/Preprocessor.h"
1414

15+
#include <array>
16+
1517
namespace clang::tidy::readability {
1618

1719
namespace {
@@ -35,7 +37,7 @@ class IfPreprocessorCallbacks final : public PPCallbacks {
3537

3638
private:
3739
void impl(SourceLocation DirectiveLoc, SourceRange ConditionRange,
38-
const llvm::StringLiteral (&Replacements)[2]) {
40+
const std::array<llvm::StringLiteral, 2> &Replacements) {
3941
// Lexer requires its input range to be null-terminated.
4042
SmallString<128> Condition =
4143
Lexer::getSourceText(CharSourceRange::getTokenRange(ConditionRange),

0 commit comments

Comments
 (0)