mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Header substitution adjustments.
This commit is contained in:
parent
40d4817748
commit
29b05ff57c
1 changed files with 4 additions and 26 deletions
|
@ -30,8 +30,7 @@ import org.eclipse.cdt.internal.core.resources.ResourceLookup;
|
||||||
|
|
||||||
public class HeaderSubstitutor {
|
public class HeaderSubstitutor {
|
||||||
IncludeMap[] INCLUDE_MAPS = {
|
IncludeMap[] INCLUDE_MAPS = {
|
||||||
cIncludeMap, cIncludeMapWeak, cppIncludeMap, cppIncludeMapWeak,
|
cIncludeMap, cIncludeMapWeak, cppIncludeMap, cppIncludeMapWeak
|
||||||
google3IncludeMap, google3IncludeMapWeak
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@SuppressWarnings("nls")
|
@SuppressWarnings("nls")
|
||||||
|
@ -472,42 +471,21 @@ public class HeaderSubstitutor {
|
||||||
"<time.h>", "<ctime>",
|
"<time.h>", "<ctime>",
|
||||||
"<wchar.h>", "<cwchar>",
|
"<wchar.h>", "<cwchar>",
|
||||||
"<wctype.h>", "<cwctype>",
|
"<wctype.h>", "<cwctype>",
|
||||||
|
"<ios>", "<iostream>",
|
||||||
"<ios>", "<istream>",
|
"<ios>", "<istream>",
|
||||||
"<ios>", "<ostream>",
|
"<ios>", "<ostream>",
|
||||||
"<iosfwd>", "<ios>",
|
"<iosfwd>", "<ios>",
|
||||||
"<iosfwd>", "<streambuf>",
|
"<iosfwd>", "<streambuf>",
|
||||||
"<istream>", "<fstream>",
|
|
||||||
"<istream>", "<iostream>",
|
"<istream>", "<iostream>",
|
||||||
|
"<istream>", "<fstream>",
|
||||||
"<istream>", "<sstream>",
|
"<istream>", "<sstream>",
|
||||||
"<ostream>", "<fstream>",
|
|
||||||
"<ostream>", "<iostream>",
|
"<ostream>", "<iostream>",
|
||||||
|
"<ostream>", "<fstream>",
|
||||||
"<ostream>", "<istream>",
|
"<ostream>", "<istream>",
|
||||||
"<ostream>", "<sstream>",
|
"<ostream>", "<sstream>",
|
||||||
"<streambuf>", "<ios>",
|
"<streambuf>", "<ios>",
|
||||||
});
|
});
|
||||||
|
|
||||||
@SuppressWarnings("nls")
|
|
||||||
private static final IncludeMap google3IncludeMap = new IncludeMap(true, true, new String[] {
|
|
||||||
"<ios>", "base/logging.h",
|
|
||||||
"<ios>", "base/logging.h",
|
|
||||||
"<iosfwd>", "base/logging.h",
|
|
||||||
"<iosfwd>", "base/logging.h",
|
|
||||||
"<istream>", "base/logging.h",
|
|
||||||
"<istream>", "base/logging.h",
|
|
||||||
"<istream>", "base/logging.h",
|
|
||||||
"<ostream>", "base/logging.h",
|
|
||||||
"<ostream>", "base/logging.h",
|
|
||||||
"<ostream>", "base/logging.h",
|
|
||||||
"<ostream>", "base/logging.h",
|
|
||||||
"<streambuf>", "base/logging.h",
|
|
||||||
"base/vlog_is_on.h", "base/logging.h"
|
|
||||||
});
|
|
||||||
|
|
||||||
@SuppressWarnings("nls")
|
|
||||||
private static final IncludeMap google3IncludeMapWeak = new IncludeMap(false, true, new String[] {
|
|
||||||
"base/commandlineflags_declare.h", "base/commandlineflags.h"
|
|
||||||
});
|
|
||||||
|
|
||||||
private final InclusionContext fContext;
|
private final InclusionContext fContext;
|
||||||
|
|
||||||
private List<IncludeMap> fIncludeMaps;
|
private List<IncludeMap> fIncludeMaps;
|
||||||
|
|
Loading…
Add table
Reference in a new issue