private static final Pattern HEADERNAME_PATTERN = Pattern.compile("@headername\\{(?<header>[^\\}]+)\\}"); //$NON-NLS-1$
/* Tizen */
- private boolean isReusage = false;
- private IScannerInfo scannerInfo;
+ private boolean isReuse = false;
+ private IScannerInfo cScannerInfo;
+ private IScannerInfo cppScannerInfo;
/* ===== */
private static class LinkageTask {
}
/* Tizen */
- public void setReuseBuildOption(boolean isReusage) {
- this.isReusage = isReusage;
+ public void setReuseBuildOption(boolean isReuse) {
+ this.isReuse = isReuse;
}
/* ===== */
/* Tizen */
-// final IScannerInfo scannerInfo = fResolver.getBuildConfiguration(linkageID, contextTu);
private IScannerInfo getScannerInfo(int linkageID, Object contextTu) {
- if (isReusage) {
- if (scannerInfo != null) {
- return scannerInfo;
+ if (isReuse) {
+ if (ILinkage.C_LINKAGE_ID == linkageID) {
+ if (cScannerInfo != null) {
+ return cScannerInfo;
+ }
+ } else if (ILinkage.CPP_LINKAGE_ID == linkageID) {
+ if (cppScannerInfo != null) {
+ return cppScannerInfo;
+ }
}
}
- scannerInfo = fResolver.getBuildConfiguration(linkageID, contextTu);
+ final IScannerInfo scannerInfo = fResolver.getBuildConfiguration(linkageID, contextTu);
+ if (ILinkage.C_LINKAGE_ID == linkageID) {
+ cScannerInfo = scannerInfo;
+ } else if (ILinkage.CPP_LINKAGE_ID == linkageID) {
+ cppScannerInfo = scannerInfo;
+ }
/* ===== */
if (scannerInfo instanceof ExtendedScannerInfo) {
ExtendedScannerInfo extendedScannerInfo = (ExtendedScannerInfo) scannerInfo;