-
Notifications
You must be signed in to change notification settings - Fork 5.3k
build: use clang-10 #11222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
build: use clang-10 #11222
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
cd49a48
update references to clang-10
lizan 76388dc
format
lizan 58895d2
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan 4f60e67
fix libtooling
lizan 181ea6b
fix
lizan 086440e
fix
lizan 386b46e
fix booster test
lizan 93b26de
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan 9302933
add nghttp2 patch
lizan a15f35b
fix ubsan in symbol_table
lizan 83b18bd
fix ubsan
lizan 986e60a
fix ubsan
lizan 6805874
fix
lizan 0363b40
fix asan
lizan 41c76ea
fix utilitytest
lizan fb6b9df
update coverage thresholds
lizan bd27495
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan 0f2a434
fix tap base properly
lizan 89a83ad
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan 74bcb11
bump nghttp2 version instead of patch
lizan 2b4bc79
Revert "bump nghttp2 version instead of patch"
lizan 625a0ba
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan 3ee4a97
make coverage timeout flexible
lizan e02b0e2
adjust cov threshold again
lizan 6fb1aab
Merge remote-tracking branch 'upstream/master' into clang-10-build
lizan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -386,12 +386,7 @@ class StatName { | |
| return H::combine(std::move(h), absl::string_view()); | ||
| } | ||
|
|
||
| // Casts the raw data as a string_view. Note that this string_view will not | ||
| // be in human-readable form, but it will be compatible with a string-view | ||
| // hasher. | ||
| const char* cdata = reinterpret_cast<const char*>(stat_name.data()); | ||
| absl::string_view data_as_string_view = absl::string_view(cdata, stat_name.dataSize()); | ||
| return H::combine(std::move(h), data_as_string_view); | ||
| return H::combine(std::move(h), stat_name.dataAsStringView()); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @jmarantz PTAL at this file |
||
| } | ||
|
|
||
| /** | ||
|
|
@@ -403,8 +398,7 @@ class StatName { | |
| uint64_t hash() const { return absl::Hash<StatName>()(*this); } | ||
|
|
||
| bool operator==(const StatName& rhs) const { | ||
| const uint64_t sz = dataSize(); | ||
| return sz == rhs.dataSize() && memcmp(data(), rhs.data(), sz * sizeof(uint8_t)) == 0; | ||
| return dataAsStringView() == rhs.dataAsStringView(); | ||
| } | ||
| bool operator!=(const StatName& rhs) const { return !(*this == rhs); } | ||
|
|
||
|
|
@@ -452,6 +446,9 @@ class StatName { | |
| * @return A pointer to the first byte of data (skipping over size bytes). | ||
| */ | ||
| const uint8_t* data() const { | ||
| if (size_and_data_ == nullptr) { | ||
| return nullptr; | ||
| } | ||
| return size_and_data_ + SymbolTableImpl::Encoding::encodingSizeBytes(dataSize()); | ||
| } | ||
|
|
||
|
|
@@ -463,6 +460,15 @@ class StatName { | |
| bool empty() const { return size_and_data_ == nullptr || dataSize() == 0; } | ||
|
|
||
| private: | ||
| /** | ||
| * Casts the raw data as a string_view. Note that this string_view will not | ||
| * be in human-readable form, but it will be compatible with a string-view | ||
| * hasher and comparator. | ||
| */ | ||
| absl::string_view dataAsStringView() const { | ||
| return {reinterpret_cast<const char*>(data()), dataSize()}; | ||
| } | ||
|
|
||
| const uint8_t* size_and_data_{nullptr}; | ||
| }; | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.