mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added __const as an alternative keyword.
This commit is contained in:
parent
b1c5ca5c96
commit
f76a432bef
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ public class GCCScannerExtension implements IScannerExtension {
|
|||
|
||||
|
||||
private static final String __CONST__ = "__const__"; //$NON-NLS-1$
|
||||
private static final String __CONST = "__const"; //$NON-NLS-1$
|
||||
private static final String __INLINE__ = "__inline__"; //$NON-NLS-1$
|
||||
private static final String __VOLATILE__ = "__volatile__"; //$NON-NLS-1$
|
||||
private static final String __SIGNED__ = "__signed__"; //$NON-NLS-1$
|
||||
|
@ -85,6 +86,7 @@ public class GCCScannerExtension implements IScannerExtension {
|
|||
scannerData.getScanner().addDefinition( IScanner.__STDC_VERSION__, new ObjectMacroDescriptor( IScanner.__STDC_VERSION__, "199001L")); //$NON-NLS-1$
|
||||
|
||||
setupAlternativeKeyword(__CONST__, Keywords.CONST);
|
||||
setupAlternativeKeyword(__CONST, Keywords.CONST);
|
||||
setupAlternativeKeyword(__INLINE__, Keywords.INLINE);
|
||||
setupAlternativeKeyword(__SIGNED__, Keywords.SIGNED);
|
||||
setupAlternativeKeyword(__VOLATILE__, Keywords.VOLATILE);
|
||||
|
|
Loading…
Add table
Reference in a new issue