1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // This test file simulates source files similar to //base/third_party. Such 6 // files are part of Chromium repo (according to |git|) and therefore would be 7 // rewritten by the |apply_edits.py| tool. OTOH, we don't want to rewrite such 8 // files: 9 // 1. We want to minimize the delta between the upstream third-party repo and 10 // the Chromium copy 11 // 2. Such files very often limit themselves to C-only and CheckedPtr requires 12 // C++11. (OTOH, if needed this item might be more directly addressable by 13 // looking at |extern "C"| context declarations, or by looking at the 14 // language of the source code - as determined by 15 // |clang_frontend_input_file.getKind().getLanguage()|). 16 17 class SomeClass; 18 19 struct MyStruct { 20 // No rewrite expected, because the path of this source file contains 21 // "third_party" substring. 22 SomeClass* ptr_field; 23 }; 24