forked from apache/kudu
-
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.
iwyu: codebase-wide fixes based on libcpp
These were generated by running iwyu.py --fix --all followed by some massaging of the IWYU mapping files. Note: kudu/client/shared_ptr.h handling isn't great: - IWYU removes shared_ptr.h unless it is annotated with a "keep" pragma. - IWYU adds <memory> if the file references a class from kudu::client::sp. This appears to be because IWYU, after processing the 'using' statements in shared_ptr.h, considers the classes in kudu::client::sp to be exactly the same as the equivalent std classes. As such, IWYU concludes that shared_ptr.h offers nothing of value and should be removed, and that <memory> should be added because e.g. kudu::client::sp::shared_ptr is actually std::shared_ptr. One might think to address the second issue by adding an "export" pragma to shared_ptr.h's inclusion of <memory>. Doing that creates another problem: IWYU removes <memory> from any file that includes shared_ptr.h, which is unsafe in non-libc++ builds where kudu::client::sp maps to std::tr1. The only way I can think of safely addressing this is by copying a non-std implementation of <memory> into shared_ptr.h, to be used only when running IWYU. Excising the necessary STL bits and bringing them into Kudu just for this problem seems like overkill, though, so we'll just live with the "keep" pragmas and the extra inclusions of <memory>. Change-Id: Ic248ba1511347d79cc6ea38140de888e5ac13354 Reviewed-on: http://gerrit.cloudera.org:8080/15543 Reviewed-by: Alexey Serbin <[email protected]> Tested-by: Kudu Jenkins
- Loading branch information
Showing
324 changed files
with
623 additions
and
329 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# | ||
# This file contains OpenSSL-specific mappings for IWYU. | ||
# | ||
# The goal is of these mappings is to identify the "public" OpenSSL headers | ||
# and to force their inclusion instead of the inclusion of various private | ||
# headers. See the IWYU mapping documentation for additional details. | ||
# | ||
|
||
[ | ||
{ include: ["<openssl/bio.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/evp.h>", private, "<openssl/ssl3.h>", private ] }, | ||
{ include: ["<openssl/opensslconf.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/opensslv.h>", private, "<openssl/crypto.h>", public ] }, | ||
{ include: ["<openssl/ossl_typ.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/rsa.h>", private, "<openssl/x509.h>", public ] }, | ||
{ include: ["<openssl/safestack.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/ssl2.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/ssl23.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/ssl3.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/tls1.h>", private, "<openssl/ssl.h>", public ] }, | ||
{ include: ["<openssl/x509err.h>", private, "<openssl/x509.h>", public ] }, | ||
] |
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
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
#include <cstddef> | ||
#include <cstdint> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
|
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.