aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-02-07 15:38:14 +0000
committerFangrui Song <maskray@google.com>2019-02-07 15:38:14 +0000
commit5ee2453924d318c7beb0959fc7ebaacf1e59b0bf (patch)
tree72175e0392c63d4e4c016d62e87ec638c33f4eab
parentb1b03e8002a97bc067ebd3ff95b10860b7355118 (diff)
downloadclang-tools-extra-5ee2453924d318c7beb0959fc7ebaacf1e59b0bf.tar.gz
[ELF] Format lines inadvertently indented by rCTE353380
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@353415 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--clangd/SourceCode.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/clangd/SourceCode.h b/clangd/SourceCode.h
index 82d94928..e6ce8c3b 100644
--- a/clangd/SourceCode.h
+++ b/clangd/SourceCode.h
@@ -47,7 +47,7 @@ size_t lspLength(StringRef Code);
/// The returned value is in the range [0, Code.size()].
llvm::Expected<size_t>
positionToOffset(llvm::StringRef Code, Position P,
- bool AllowColumnsBeyondLineLength = true);
+ bool AllowColumnsBeyondLineLength = true);
/// Turn an offset in Code into a [line, column] pair.
/// The offset must be in range [0, Code.size()].
@@ -110,7 +110,7 @@ Range halfOpenToRange(const SourceManager &SM, CharSourceRange R);
// The offset must be in range [0, Code.size()].
// Prefer to use SourceManager if one is available.
std::pair<size_t, size_t> offsetToClangLineColumn(llvm::StringRef Code,
- size_t Offset);
+ size_t Offset);
/// From "a::b::c", return {"a::b::", "c"}. Scope is empty if there's no
/// qualifier.
@@ -120,10 +120,10 @@ splitQualifiedName(llvm::StringRef QName);
TextEdit replacementToEdit(StringRef Code, const tooling::Replacement &R);
std::vector<TextEdit> replacementsToEdits(StringRef Code,
- const tooling::Replacements &Repls);
+ const tooling::Replacements &Repls);
TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
- const LangOptions &L);
+ const LangOptions &L);
/// Get the canonical path of \p F. This means:
///
@@ -136,7 +136,7 @@ TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
/// component that generate it, so that paths are normalized as much as
/// possible.
llvm::Optional<std::string> getCanonicalPath(const FileEntry *F,
- const SourceManager &SourceMgr);
+ const SourceManager &SourceMgr);
bool isRangeConsecutive(const Range &Left, const Range &Right);