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.
1 parent 25aa128 commit 3527a02Copy full SHA for 3527a02
clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
@@ -829,7 +829,9 @@ TEST(SourceCodeTests, isSpelledInSource) {
829
// FIXME: Should it return false on SourceLocation()? Does it matter?
830
EXPECT_TRUE(isSpelledInSource(SourceLocation(), SM));
831
EXPECT_FALSE(isSpelledInSource(
832
- SourceLocation::getFromRawEncoding(SourceLocation::UIntTy(1 << 31)), SM));
+ SourceLocation::getFromRawEncoding(
833
+ SourceLocation::UIntTy(1ULL << (SourceLocation::Bits - 1))),
834
+ SM));
835
}
836
837
struct IncrementalTestStep {
0 commit comments