~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CodeFormatterVisitor.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3771
3771
                        return true;
3772
3772
                } else if (!fInsideMacroArguments && locations[0] instanceof IASTMacroExpansionLocation) {
3773
3773
                        IASTMacroExpansionLocation location = (IASTMacroExpansionLocation) locations[0];
3774
 
                        if (locations.length <= 2 && node instanceof IASTStatement) {
 
3774
                        if (locations.length <= 2 && 
 
3775
                                        (node instanceof IASTStatement || node instanceof IASTExpression)) {
3775
3776
                                IASTPreprocessorMacroExpansion macroExpansion = location.getExpansion();
3776
3777
                                IASTFileLocation macroLocation = macroExpansion.getFileLocation();
3777
3778
                                int macroOffset = macroLocation.getNodeOffset();