24 lines
757 B
Text
24 lines
757 B
Text
|
Fix build with llvm-15
|
||
|
https://github.com/KDE/clazy/commit/20fca52da739ebefa47e35f6b338bb99a0da3cfe
|
||
|
|
||
|
Index: src/Utils.cpp
|
||
|
--- src/Utils.cpp.orig
|
||
|
+++ src/Utils.cpp
|
||
|
@@ -25,6 +25,7 @@
|
||
|
#include "Utils.h"
|
||
|
#include "StringUtils.h"
|
||
|
#include "HierarchyUtils.h"
|
||
|
+#include "SourceCompatibilityHelpers.h"
|
||
|
#include "StmtBodyRange.h"
|
||
|
#include "clazy_stl.h"
|
||
|
|
||
|
@@ -670,7 +671,7 @@ const CXXRecordDecl *Utils::recordForMemberCall(CXXMem
|
||
|
bool Utils::isAscii(StringLiteral *lt)
|
||
|
{
|
||
|
// 'é' for some reason has isAscii() == true, so also call containsNonAsciiOrNull
|
||
|
- return lt && lt->isAscii() && !lt->containsNonAsciiOrNull();
|
||
|
+ return lt && clazy::isAscii(lt) && !lt->containsNonAsciiOrNull();
|
||
|
}
|
||
|
|
||
|
bool Utils::isInDerefExpression(Stmt *s, ParentMap *map)
|