aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2024-05-20 19:28:32 -0700
committerOwen Pan <owenpiano@gmail.com>2024-05-20 20:32:18 -0700
commit1c58208d899285318c89e069268145c85ec33368 (patch)
tree9186b77e0f5d632dc5e17e48c5c5c521b1ffd149 /clang/unittests/Format/FormatTestJS.cpp
parent560c2fd3d427a5e2dc2361abde1142f3fda40253 (diff)
downloadllvm-1c58208d899285318c89e069268145c85ec33368.zip
llvm-1c58208d899285318c89e069268145c85ec33368.tar.gz
llvm-1c58208d899285318c89e069268145c85ec33368.tar.bz2
[clang-format][NFC] Remove redundnat llvm::, clang::, etc.
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 3aded8f..b910ce6 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -16,10 +16,10 @@
namespace clang {
namespace format {
-class FormatTestJS : public ::testing::Test {
+class FormatTestJS : public testing::Test {
protected:
- static std::string format(llvm::StringRef Code, unsigned Offset,
- unsigned Length, const FormatStyle &Style) {
+ static std::string format(StringRef Code, unsigned Offset, unsigned Length,
+ const FormatStyle &Style) {
LLVM_DEBUG(llvm::errs() << "---\n");
LLVM_DEBUG(llvm::errs() << Code << "\n\n");
std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length));
@@ -34,7 +34,7 @@ protected:
}
static std::string format(
- llvm::StringRef Code,
+ StringRef Code,
const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
return format(Code, 0, Code.size(), Style);
}
@@ -46,7 +46,7 @@ protected:
}
static void verifyFormat(
- llvm::StringRef Code,
+ StringRef Code,
const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
EXPECT_EQ(Code.str(), format(Code, Style)) << "Expected code is not stable";
std::string Result = format(test::messUp(Code), Style);
@@ -54,7 +54,7 @@ protected:
}
static void verifyFormat(
- llvm::StringRef Expected, llvm::StringRef Code,
+ StringRef Expected, StringRef Code,
const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
EXPECT_EQ(Expected.str(), format(Expected, Style))
<< "Expected code is not stable";