clang-tools 22.0.0git
RawStringLiteralCheck.cpp File Reference
#include "RawStringLiteralCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringRef.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::tidy
namespace  clang::tidy::modernize

Functions

static bool clang::tidy::modernize::containsEscapes (StringRef HayStack, StringRef Escapes)
static bool clang::tidy::modernize::isRawStringLiteral (StringRef Text)
static bool clang::tidy::modernize::containsEscapedCharacters (const MatchFinder::MatchResult &Result, const StringLiteral *Literal, const CharsBitSet &DisallowedChars)
static bool clang::tidy::modernize::containsDelimiter (StringRef Bytes, const std::string &Delimiter)
static std::optional< StringRef > clang::tidy::modernize::createUserDefinedSuffix (const StringLiteral *Literal, const SourceManager &SM, const LangOptions &LangOpts)
static std::string clang::tidy::modernize::createRawStringLiteral (const StringLiteral *Literal, const std::string &DelimiterStem, const SourceManager &SM, const LangOptions &LangOpts)
static bool clang::tidy::modernize::compareStringLength (StringRef Replacement, const StringLiteral *Literal, const SourceManager &SM, const LangOptions &LangOpts)