mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
Add automatic header guard checks/fixes (#1260)
My intent is to add CARBON_ bas a prefix, and this makes that easier by creating a tool for auto-fixing guards in general. string_literal is a manual fix -- it had no guard and I didn't automate that (technically I think I could, especially by enforcing the file header/footer, but it didn't feel quite worth it to me).
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
// Exceptions. See /LICENSE for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#ifndef TOOLCHAIN_SOURCE_SOURCEBUFFER_H_
|
||||
#define TOOLCHAIN_SOURCE_SOURCEBUFFER_H_
|
||||
#ifndef TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_
|
||||
#define TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
@@ -74,4 +74,4 @@ class SourceBuffer {
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
#endif // TOOLCHAIN_SOURCE_SOURCEBUFFER_H_
|
||||
#endif // TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_
|
||||
|
||||
Reference in New Issue
Block a user