summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2018-01-15 09:13:49 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-01-16 14:25:56 +0100
commit0183c7c3b86be4be9c5fd6eec09785bd99c0a0b4 (patch)
treec3cf7dd51a64c66e3e70c3a71b023e2e8793bcc5 /compilerplugins
parentf0b857310dd564356a6ff7854bdc42cb677989f9 (diff)
Fix typos
Change-Id: I46873c8bea3bbfeebb7dee50918d3978408fcf63 Reviewed-on: https://gerrit.libreoffice.org/47842 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx2
-rw-r--r--compilerplugins/clang/unnecessaryparen.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index ba89c1aa02b5..228e3878e5eb 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -381,7 +381,7 @@ bool CStyleCast::rewriteArithmeticCast(CStyleCastExpr const * expr, char const *
}
// Two or four ranges to replace:
// First is the CStyleCast's LParen, plus following whitespace, replaced with either "" or
- // "static_cast<". (TOOD: insert space before "static_cast<" when converting "else(int)...".)
+ // "static_cast<". (TODO: insert space before "static_cast<" when converting "else(int)...".)
// Second is the CStyleCast's RParen, plus preceding and following whitespace, replaced with
// either "" or ">".
// If the sub expr is not a ParenExpr, third is the sub expr's begin, inserting "(", and fourth
diff --git a/compilerplugins/clang/unnecessaryparen.cxx b/compilerplugins/clang/unnecessaryparen.cxx
index d4ebd6ed0b14..8e038319fda8 100644
--- a/compilerplugins/clang/unnecessaryparen.cxx
+++ b/compilerplugins/clang/unnecessaryparen.cxx
@@ -489,12 +489,12 @@ bool badCombinationChar(char c) {
}
bool UnnecessaryParen::badCombination(SourceLocation loc, int prevOffset, int nextOffset) {
- //TODO: check for start/end of file; take backslash-newline line concatentation into account
+ //TODO: check for start/end of file; take backslash-newline line concatenation into account
auto const c1
= compiler.getSourceManager().getCharacterData(loc.getLocWithOffset(prevOffset))[0];
auto const c2
= compiler.getSourceManager().getCharacterData(loc.getLocWithOffset(nextOffset))[0];
- // An approximation of avoiding whatever combinations that would cause two ajacent tokens to be
+ // An approximation of avoiding whatever combinations that would cause two adjacent tokens to be
// lexed differently, using, for now, letters (TODO: non-ASCII ones) and digits and '_'; '+' and
// '-' (to avoid ++, etc.); '\'' and '"' (to avoid u'x' or "foo"bar, etc.):
return badCombinationChar(c1) && badCombinationChar(c2);