public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScannerInfo
IExtendedScannerInfo
interface. Allows to configure
the preprocessor.Constructor and Description |
---|
ExtendedScannerInfo() |
ExtendedScannerInfo(IScannerInfo info) |
ExtendedScannerInfo(Map<String,String> definedSymbols,
String[] includePaths) |
ExtendedScannerInfo(Map<String,String> definedSymbols,
String[] includePaths,
String[] macroFiles,
String[] includeFiles) |
ExtendedScannerInfo(Map<String,String> definedSymbols,
String[] includePaths,
String[] macroFiles,
String[] includeFiles,
String[] localIncludePaths) |
Modifier and Type | Method and Description |
---|---|
IncludeExportPatterns |
getIncludeExportPatterns()
Returns the regular expression patterns matching export directives for included files.
|
String[] |
getIncludeFiles()
Return an array of files that will be parsed before parsing the translation-unit as if
the these files were included using include directives.
|
String[] |
getLocalIncludePath()
Return an array of paths that is searched after the current directory, when an include
directive with double-quotes is processed.
|
String[] |
getMacroFiles()
Return an array of files which will be preprocessed before parsing the translation-unit in
order to populate the macro-dictionary.
|
IParserSettings |
getParserSettings()
Returns additional settings for the parser.
|
void |
setIncludeExportPatterns(IncludeExportPatterns patterns)
Sets the regular expression patterns matching export directives for included files.
|
void |
setParserSettings(IParserSettings parserSettings)
Sets additional settings for configuring the parser.
|
getDefinedSymbols, getIncludePaths
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefinedSymbols, getIncludePaths
public ExtendedScannerInfo()
public ExtendedScannerInfo(Map<String,String> definedSymbols, String[] includePaths)
public ExtendedScannerInfo(Map<String,String> definedSymbols, String[] includePaths, String[] macroFiles, String[] includeFiles)
public ExtendedScannerInfo(Map<String,String> definedSymbols, String[] includePaths, String[] macroFiles, String[] includeFiles, String[] localIncludePaths)
public ExtendedScannerInfo(IScannerInfo info)
public String[] getMacroFiles()
IExtendedScannerInfo
getMacroFiles
in interface IExtendedScannerInfo
public String[] getIncludeFiles()
IExtendedScannerInfo
getIncludeFiles
in interface IExtendedScannerInfo
public String[] getLocalIncludePath()
IExtendedScannerInfo
In order to suppress the use of the directory of the current file (side effect of gcc option -I-) you can pass '-' as one of the include paths. Other than that, the '-' will not have an effect, in particular it will not split the include path as the -I- option would do.
getLocalIncludePath
in interface IExtendedScannerInfo
public IncludeExportPatterns getIncludeExportPatterns()
IncludeExportPatterns
public void setIncludeExportPatterns(IncludeExportPatterns patterns)
IncludeExportPatterns
public IParserSettings getParserSettings()
public void setParserSettings(IParserSettings parserSettings)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.