Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java53
1 files changed, 28 insertions, 25 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java
index 5c22f1203d5..4db9e2cadd2 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRImageLocationTests.java
@@ -7,7 +7,7 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -27,31 +27,34 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
public class LRImageLocationTests extends ImageLocationTests {
public static TestSuite suite() {
- return suite(LRImageLocationTests.class);
- }
-
- public LRImageLocationTests() { }
- public LRImageLocationTests(String name) { super(name); }
-
-
+ return suite(LRImageLocationTests.class);
+ }
+
+ public LRImageLocationTests() {
+ }
+
+ public LRImageLocationTests(String name) {
+ super(name);
+ }
+
@Override
@SuppressWarnings("unused")
- protected IASTTranslationUnit parse( String code, ParserLanguage lang, boolean useGNUExtensions,
+ protected IASTTranslationUnit parse(String code, ParserLanguage lang, boolean useGNUExtensions,
boolean expectNoProblems, int limitTrivialInitializers) throws ParserException {
- ILanguage language = lang.isCPP() ? getCPPLanguage() : getCLanguage();
- ParseHelper.Options options = new ParseHelper.Options();
- options.setCheckSyntaxProblems(expectNoProblems);
- options.setCheckPreprocessorProblems(expectNoProblems);
- options.setLimitTrivialInitializers(limitTrivialInitializers);
- return ParseHelper.parse(code, language, options);
- }
-
- protected ILanguage getCLanguage() {
- return GCCLanguage.getDefault();
- }
-
- protected ILanguage getCPPLanguage() {
- return GPPLanguage.getDefault();
- }
-
+ ILanguage language = lang.isCPP() ? getCPPLanguage() : getCLanguage();
+ ParseHelper.Options options = new ParseHelper.Options();
+ options.setCheckSyntaxProblems(expectNoProblems);
+ options.setCheckPreprocessorProblems(expectNoProblems);
+ options.setLimitTrivialInitializers(limitTrivialInitializers);
+ return ParseHelper.parse(code, language, options);
+ }
+
+ protected ILanguage getCLanguage() {
+ return GCCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return GPPLanguage.getDefault();
+ }
+
}

Back to the top