forked from bazelbuild/bazel
-
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.
Clean up some C++-related code I came across while modifying CppCompi…
…leActionTemplate: 1. In production ArtifactNamePattern is always in 1-1 correspondence with ArtifactCategory. Modify data structures to make that explicit, and remove exceptions that could never be thrown. 2. CppCompileActionBuilder#build could theoretically emit multiple errors but in reality only ever emitted one. Modify code to make that explicit, which simplifies calling code. 2a. Tighten behavior of CppCompileActionBuilder so that it's clearer that getActionName() is constant over the lifetime of the method buildAndVerify(). PiperOrigin-RevId: 421039367
- Loading branch information
1 parent
16da031
commit ce19076
Showing
13 changed files
with
245 additions
and
318 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
Oops, something went wrong.