forked from ccache/ccache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract enums into separate headers (ccache#764)
- Loading branch information
1 parent
c47e684
commit e3bba66
Showing
19 changed files
with
154 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (C) 2021 Joel Rosdahl and other contributors | ||
// | ||
// See doc/AUTHORS.adoc for a complete list of contributors. | ||
// | ||
// This program is free software; you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by the Free | ||
// Software Foundation; either version 3 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT | ||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
// more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with | ||
// this program; if not, write to the Free Software Foundation, Inc., 51 | ||
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
#pragma once | ||
|
||
enum Sloppiness { | ||
SLOPPY_INCLUDE_FILE_MTIME = 1 << 0, | ||
SLOPPY_INCLUDE_FILE_CTIME = 1 << 1, | ||
SLOPPY_TIME_MACROS = 1 << 2, | ||
SLOPPY_PCH_DEFINES = 1 << 3, | ||
// Allow us to match files based on their stats (size, mtime, ctime), without | ||
// looking at their contents. | ||
SLOPPY_FILE_STAT_MATCHES = 1 << 4, | ||
// Allow us to not include any system headers in the manifest include files, | ||
// similar to -MM versus -M for dependencies. | ||
SLOPPY_SYSTEM_HEADERS = 1 << 5, | ||
// Allow us to ignore ctimes when comparing file stats, so we can fake mtimes | ||
// if we want to (it is much harder to fake ctimes, requires changing clock) | ||
SLOPPY_FILE_STAT_MATCHES_CTIME = 1 << 6, | ||
// Allow us to not include the -index-store-path option in the manifest hash. | ||
SLOPPY_CLANG_INDEX_STORE = 1 << 7, | ||
// Ignore locale settings. | ||
SLOPPY_LOCALE = 1 << 8, | ||
// Allow caching even if -fmodules is used. | ||
SLOPPY_MODULES = 1 << 9, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright (C) 2021 Joel Rosdahl and other contributors | ||
// | ||
// See doc/AUTHORS.adoc for a complete list of contributors. | ||
// | ||
// This program is free software; you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by the Free | ||
// Software Foundation; either version 3 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT | ||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
// more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with | ||
// this program; if not, write to the Free Software Foundation, Inc., 51 | ||
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
#pragma once | ||
|
||
// Statistics fields in storage order. | ||
enum class Statistic { | ||
none = 0, | ||
compiler_produced_stdout = 1, | ||
compile_failed = 2, | ||
internal_error = 3, | ||
cache_miss = 4, | ||
preprocessor_error = 5, | ||
could_not_find_compiler = 6, | ||
missing_cache_file = 7, | ||
preprocessed_cache_hit = 8, | ||
bad_compiler_arguments = 9, | ||
called_for_link = 10, | ||
files_in_cache = 11, | ||
cache_size_kibibyte = 12, | ||
obsolete_max_files = 13, | ||
obsolete_max_size = 14, | ||
unsupported_source_language = 15, | ||
bad_output_file = 16, | ||
no_input_file = 17, | ||
multiple_source_files = 18, | ||
autoconf_test = 19, | ||
unsupported_compiler_option = 20, | ||
output_to_stdout = 21, | ||
direct_cache_hit = 22, | ||
compiler_produced_no_output = 23, | ||
compiler_produced_empty_output = 24, | ||
error_hashing_extra_file = 25, | ||
compiler_check_failed = 26, | ||
could_not_use_precompiled_header = 27, | ||
called_for_preprocessing = 28, | ||
cleanups_performed = 29, | ||
unsupported_code_directive = 30, | ||
stats_zeroed_timestamp = 31, | ||
could_not_use_modules = 32, | ||
|
||
END | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.