We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::array
1 parent a2d0a59 commit 491d304Copy full SHA for 491d304
clang-tools-extra/clang-tidy/readability/UseConcisePreprocessorDirectivesCheck.cpp
@@ -12,6 +12,8 @@
12
#include "clang/Lex/PPCallbacks.h"
13
#include "clang/Lex/Preprocessor.h"
14
15
+#include <array>
16
+
17
namespace clang::tidy::readability {
18
19
namespace {
@@ -35,7 +37,7 @@ class IfPreprocessorCallbacks final : public PPCallbacks {
35
37
36
38
private:
39
void impl(SourceLocation DirectiveLoc, SourceRange ConditionRange,
- const llvm::StringLiteral (&Replacements)[2]) {
40
+ const std::array<llvm::StringLiteral, 2> &Replacements) {
41
// Lexer requires its input range to be null-terminated.
42
SmallString<128> Condition =
43
Lexer::getSourceText(CharSourceRange::getTokenRange(ConditionRange),
0 commit comments