diff options
author | Jonah Graham | 2018-11-22 23:46:49 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-23 07:52:26 +0000 |
commit | ff75ae80fa44dfc925064f7ca0169ac80997bc77 (patch) | |
tree | 7db3666d26eeae703d9bc650d5d4540bc71406fb /core/org.eclipse.cdt.core/parser/org/eclipse | |
parent | be35c7327d2a6168718afea45181a058a7d414fa (diff) | |
download | org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.gz org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.xz org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.zip |
Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +
Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse')
2 files changed, 19 insertions, 19 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserMessages.properties b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserMessages.properties index 447b4941ec3..b867ea44e76 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserMessages.properties +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserMessages.properties @@ -7,7 +7,7 @@ # https://www.eclipse.org/legal/epl-2.0/ # # SPDX-License-Identifier: EPL-2.0 -# +# # Contributors: # IBM Rational Software - Initial API and implementation # Anton Leherbauer (Wind River Systems) @@ -28,23 +28,23 @@ ScannerProblemFactory.error.preproc.circularInclusion=Circular inclusion for fil ScannerProblemFactory.error.preproc.invalidDirective=Invalid preprocessor directive: {0} ScannerProblemFactory.error.preproc.macroPasting=Invalid use of macro pasting in macro: {0} ScannerProblemFactory.error.preproc.missingRParen=missing '')'' in parameter list of macro: {0} -ScannerProblemFactory.error.preproc.invalidVaArgs=__VA_ARGS__ can only appear in the expansion of a variadic macro +ScannerProblemFactory.error.preproc.invalidVaArgs=__VA_ARGS__ can only appear in the expansion of a variadic macro\u0020 ScannerProblemFactory.error.preproc.multipleUserDefinedLiteralSuffixesOnStringLiteral=Multiple user-defined suffixes found when concatenating string literals -ScannerProblemFactory.error.scanner.invalidEscapeChar=Invalid escape character encountered -ScannerProblemFactory.error.scanner.unboundedString=Unbounded string encountered -ScannerProblemFactory.error.scanner.badFloatingPoint=Invalid floating point format encountered -ScannerProblemFactory.error.scanner.badBinaryFormat=Invalid binary format encountered -ScannerProblemFactory.error.scanner.badHexFormat=Invalid hexadecimal format encountered -ScannerProblemFactory.error.scanner.badOctalFormat=Invalid octal format encountered -ScannerProblemFactory.error.scanner.badDecimalFormat=Invalid decimal format encountered -ScannerProblemFactory.error.scanner.assignmentNotAllowed=Assignment not allowed -ScannerProblemFactory.error.scanner.divideByZero=Division by zero not allowed -ScannerProblemFactory.error.scanner.missingRParen=Missing right parenthesis ) -ScannerProblemFactory.error.scanner.expressionSyntaxError=Expression syntax error -ScannerProblemFactory.error.scanner.illegalIdentifier=Illegal identifier in defined() -ScannerProblemFactory.error.scanner.badConditionalExpression=Bad conditional expression -ScannerProblemFactory.error.scanner.unexpectedEOF=Unexpected End Of File encountered +ScannerProblemFactory.error.scanner.invalidEscapeChar=Invalid escape character encountered\u0020 +ScannerProblemFactory.error.scanner.unboundedString=Unbounded string encountered\u0020 +ScannerProblemFactory.error.scanner.badFloatingPoint=Invalid floating point format encountered\u0020 +ScannerProblemFactory.error.scanner.badBinaryFormat=Invalid binary format encountered\u0020 +ScannerProblemFactory.error.scanner.badHexFormat=Invalid hexadecimal format encountered\u0020 +ScannerProblemFactory.error.scanner.badOctalFormat=Invalid octal format encountered\u0020 +ScannerProblemFactory.error.scanner.badDecimalFormat=Invalid decimal format encountered\u0020 +ScannerProblemFactory.error.scanner.assignmentNotAllowed=Assignment not allowed\u0020 +ScannerProblemFactory.error.scanner.divideByZero=Division by zero not allowed\u0020 +ScannerProblemFactory.error.scanner.missingRParen=Missing right parenthesis )\u0020 +ScannerProblemFactory.error.scanner.expressionSyntaxError=Expression syntax error\u0020 +ScannerProblemFactory.error.scanner.illegalIdentifier=Illegal identifier in defined()\u0020 +ScannerProblemFactory.error.scanner.badConditionalExpression=Bad conditional expression\u0020 +ScannerProblemFactory.error.scanner.unexpectedEOF=Unexpected End Of File encountered\u0020 ScannerProblemFactory.error.scanner.badCharacter=Bad character sequence encountered: {0} ScannerProblemFactory.error.scanner.constantWithBadSuffix=Constant "{0}" has an invalid suffix ScannerProblemFactory.error.scanner.floatWithBadPrefix=Floating constant "{0}" has an invalid prefix @@ -58,7 +58,7 @@ BaseProblemFactory.problemPattern={0} in file: {1}:{2, number, integer} ISemanticProblem.BINDING_NOT_FOUND=Attempt to use symbol failed: {0} ISemanticProblem.BINDING_AMBIGUOUS_LOOKUP=Ambiguity encountered during lookup: {0} ISemanticProblem.BINDING_BAD_SCOPE=A scope could not be created to represent the name {0} -ISemanticProblem.BINDING_INVALID_TYPE=Invalid type encountered in: {0} +ISemanticProblem.BINDING_INVALID_TYPE=Invalid type encountered in: {0}\u0020 ISemanticProblem.BINDING_CIRCULAR_INHERITANCE=Circular inheritance encountered in {0} ISemanticProblem.BINDING_INVALID_OVERLOAD=Invalid overload of the name: {0} ISemanticProblem.BINDING_INVALID_USING=Invalid using directive/declaration: {0} diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/Messages.properties b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/Messages.properties index 15e1484df57..95d3e4a039b 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/Messages.properties +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/Messages.properties @@ -11,5 +11,5 @@ # Contributors: # Symbian Software Limited - initial API and implementation ############################################################################### -PDOMFile.toInternalProblem=Unable to translate location to internal format: -PDOMFile.toExternalProblem=Unable to translate from internal format for +PDOMFile.toInternalProblem=Unable to translate location to internal format:\u0020 +PDOMFile.toExternalProblem=Unable to translate from internal format for\u0020 |