[clang] 652048a - [clang][NFC] Add header comment for OSLog.cpp (#148537)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 26 06:46:10 PDT 2025
Author: Bogdan Vetrenko
Date: 2025-07-26T15:46:06+02:00
New Revision: 652048ad2578c715d8d65d90fd3fe5d5d2bd42e7
URL: https://github.com/llvm/llvm-project/commit/652048ad2578c715d8d65d90fd3fe5d5d2bd42e7
DIFF: https://github.com/llvm/llvm-project/commit/652048ad2578c715d8d65d90fd3fe5d5d2bd42e7.diff
LOG: [clang][NFC] Add header comment for OSLog.cpp (#148537)
Signed-off-by: Bogdan Vetrenko <b.vetrenko at yandex.ru>
Added:
Modified:
clang/lib/AST/OSLog.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/OSLog.cpp b/clang/lib/AST/OSLog.cpp
index b777d4d65b84d..91f8410e89e86 100644
--- a/clang/lib/AST/OSLog.cpp
+++ b/clang/lib/AST/OSLog.cpp
@@ -1,4 +1,16 @@
-// TODO: header template
+//===--- OSLog.cpp - OS log format string analysis ------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file implements analysis functions for OS log format strings and
+/// buffer layout computation for __builtin_os_log_format and related builtins.
+///
+//===----------------------------------------------------------------------===//
#include "clang/AST/OSLog.h"
#include "clang/AST/Attr.h"
@@ -137,8 +149,8 @@ class OSLogFormatStringHandler
for (auto &Data : ArgsData) {
if (!Data.MaskType.empty()) {
CharUnits Size = CharUnits::fromQuantity(8);
- Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr,
- Size, 0, Data.MaskType);
+ Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr, Size, 0,
+ Data.MaskType);
}
if (Data.FieldWidth) {
More information about the cfe-commits
mailing list