aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/UnwrappedLineFormatter.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-09-10 00:24:40 +0000
committerHans Wennborg <hans@hanshq.net>2015-09-10 00:24:40 +0000
commit60f3e1f466c9dfa834ab9e71ae4fe0589a42774f (patch)
treeff5497a3955ffa654477b6a91b4e593b60e56084 /clang/lib/Format/UnwrappedLineFormatter.cpp
parent34d7a7493da92026aca5395f930cabd98354ef95 (diff)
downloadllvm-60f3e1f466c9dfa834ab9e71ae4fe0589a42774f.zip
llvm-60f3e1f466c9dfa834ab9e71ae4fe0589a42774f.tar.gz
llvm-60f3e1f466c9dfa834ab9e71ae4fe0589a42774f.tar.bz2
Fix Clang-tidy misc-use-override warnings, other minor fixes
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D12741 llvm-svn: 247218
Diffstat (limited to 'clang/lib/Format/UnwrappedLineFormatter.cpp')
-rw-r--r--clang/lib/Format/UnwrappedLineFormatter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp
index b6784b3..20298d3 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -606,7 +606,7 @@ public:
/// \brief Puts all tokens into a single line.
unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
- bool DryRun) {
+ bool DryRun) override {
unsigned Penalty = 0;
LineState State = Indenter->getInitialState(FirstIndent, &Line, DryRun);
while (State.NextToken) {
@@ -629,7 +629,7 @@ public:
/// \brief Formats the line by finding the best line breaks with line lengths
/// below the column limit.
unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
- bool DryRun) {
+ bool DryRun) override {
LineState State = Indenter->getInitialState(FirstIndent, &Line, DryRun);
// If the ObjC method declaration does not fit on a line, we should format
@@ -791,7 +791,7 @@ private:
llvm::SpecificBumpPtrAllocator<StateNode> Allocator;
};
-} // namespace
+} // anonymous namespace
unsigned
UnwrappedLineFormatter::format(const SmallVectorImpl<AnnotatedLine *> &Lines,