| Index: tools/gn/source_file_type.h
|
| diff --git a/tools/gn/source_file_type.h b/tools/gn/source_file_type.h
|
| index f738daacb4602957bb8ca72730fc7229b8d61505..c43b4324443e5184709390fd5bfb658fc6a5edfd 100644
|
| --- a/tools/gn/source_file_type.h
|
| +++ b/tools/gn/source_file_type.h
|
| @@ -7,11 +7,13 @@
|
|
|
| class SourceFile;
|
|
|
| +// This should be sequential integers starting from 0 so they can be used as
|
| +// array indices.
|
| enum SourceFileType {
|
| - SOURCE_UNKNOWN,
|
| + SOURCE_UNKNOWN = 0,
|
| SOURCE_ASM,
|
| SOURCE_C,
|
| - SOURCE_CC,
|
| + SOURCE_CPP,
|
| SOURCE_H,
|
| SOURCE_M,
|
| SOURCE_MM,
|
| @@ -19,6 +21,9 @@ enum SourceFileType {
|
| SOURCE_RC,
|
| SOURCE_O, // Object files can be inputs, too. Also counts .obj.
|
| SOURCE_DEF,
|
| +
|
| + // Must be last.
|
| + SOURCE_NUMTYPES,
|
| };
|
|
|
| SourceFileType GetSourceFileType(const SourceFile& file);
|
|
|