Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 111120 Details for
Bug 245443
StandaloneIndexerTask base uses default ScannerConfig in producing AST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch providing overloaded retrieveScannerConfig in StandaloneIndexerTask
patch.txt (text/plain), 2.32 KB, created by
Missing name Mising name
on 2008-08-27 16:14:02 EDT
(
hide
)
Description:
Patch providing overloaded retrieveScannerConfig in StandaloneIndexerTask
Filename:
MIME Type:
Creator:
Missing name Mising name
Created:
2008-08-27 16:14:02 EDT
Size:
2.32 KB
patch
obsolete
>Index: indexer/StandaloneIndexerTask.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/indexer/StandaloneIndexerTask.java,v >retrieving revision 1.8 >diff -u -r1.8 StandaloneIndexerTask.java >--- indexer/StandaloneIndexerTask.java 14 Jul 2008 21:44:45 -0000 1.8 >+++ indexer/StandaloneIndexerTask.java 27 Aug 2008 16:13:33 -0000 >@@ -20,6 +20,7 @@ > import org.eclipse.cdt.core.model.AbstractLanguage; > import org.eclipse.cdt.core.model.ILanguage; > import org.eclipse.cdt.core.parser.IParserLogService; >+import org.eclipse.cdt.core.parser.IScannerInfo; > import org.eclipse.cdt.internal.core.index.IWritableIndex; > import org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask; > import org.eclipse.cdt.internal.core.pdom.IndexerProgress; >@@ -219,5 +220,15 @@ > getLogService().traceLog(s.getMessage()); > } > >+ /* >+ * (non-Javadoc) >+ * @see org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask#createDefaultScannerConfig(int) >+ */ >+ @Override >+ protected IScannerInfo retrieveScannerConfig(int linkageID) { >+ if (fIndexer.getScannerInfo() == null) return super.createDefaultScannerConfig(linkageID); >+ else return fIndexer.getScannerInfo(); >+ } >+ > > } >Index: pdom/AbstractIndexerTask.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/AbstractIndexerTask.java,v >retrieving revision 1.17 >diff -u -r1.17 AbstractIndexerTask.java >--- pdom/AbstractIndexerTask.java 8 Jul 2008 07:44:12 -0000 1.17 >+++ pdom/AbstractIndexerTask.java 27 Aug 2008 16:13:33 -0000 >@@ -141,7 +141,7 @@ > return null; > } > >- protected IScannerInfo createDefaultScannerConfig(int linkageID) { >+ protected IScannerInfo retrieveScannerConfig(int linkageID) { > return new ScannerInfo(); > } > >@@ -454,7 +454,7 @@ > int linkageID= lang.getLinkageID(); > String code= "#include \"" + filePath + "\"\n"; //$NON-NLS-1$ //$NON-NLS-2$ > >- IScannerInfo scanInfo= createDefaultScannerConfig(linkageID); >+ IScannerInfo scanInfo= retrieveScannerConfig(linkageID); > if (scanInfo != null) { > long start= System.currentTimeMillis(); > IASTTranslationUnit ast= createAST(code, lang, scanInfo, fASTOptions, monitor);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245443
:
111120
|
111128
|
111311