Skip to content

Commit

Permalink
mike-lischke#132 Try to fix Clang-Format
Browse files Browse the repository at this point in the history
Signed-off-by: vityaman <[email protected]>
  • Loading branch information
vityaman committed Jul 28, 2024
1 parent 829c2a3 commit 5488ad2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ports/cpp/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Language: Cpp
BasedOnStyle: Google

ColumnLimit: 80
AccessModifierOffset: -2

AllowShortFunctionsOnASingleLine: None
Expand Down
6 changes: 4 additions & 2 deletions ports/cpp/source/antlr4-c3/CodeCompletionCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ std::vector<size_t> longestCommonPrefix(
}
}
return {
lhs.begin(), std::next(lhs.begin(), static_cast<std::ptrdiff_t>(index))
lhs.begin(),
std::next(lhs.begin(), static_cast<std::ptrdiff_t>(index)),
};
}

Expand Down Expand Up @@ -272,7 +273,8 @@ bool CodeCompletionCore::translateToRuleIndex(

if (addNew) {
candidates.rules[rwst.ruleIndex] = {
.startTokenIndex = rwst.startTokenIndex, .ruleList = path
.startTokenIndex = rwst.startTokenIndex,
.ruleList = path,
};
if (showDebugOutput) {
std::cout << "=====> collected: " << ruleNames[rwst.ruleIndex] << "\n";
Expand Down

0 comments on commit 5488ad2

Please sign in to comment.