Skip to content

Commit f2b29fa

Browse files
committed
[clang][NFC] Add header comment for OSLog.cpp
Signed-off-by: Bogdan Vetrenko <[email protected]>
1 parent 0db197a commit f2b29fa

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

clang/lib/AST/OSLog.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// TODO: header template
1+
//===--- OSLog.cpp - OS log format string analysis ------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
///
9+
/// \file
10+
/// This file implements analysis functions for OS Log format strings and
11+
/// buffer layout computation for __builtin_os_log_format and related builtins.
12+
///
13+
//===----------------------------------------------------------------------===//
214

315
#include "clang/AST/OSLog.h"
416
#include "clang/AST/Attr.h"
@@ -137,8 +149,8 @@ class OSLogFormatStringHandler
137149
for (auto &Data : ArgsData) {
138150
if (!Data.MaskType.empty()) {
139151
CharUnits Size = CharUnits::fromQuantity(8);
140-
Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr,
141-
Size, 0, Data.MaskType);
152+
Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr, Size, 0,
153+
Data.MaskType);
142154
}
143155

144156
if (Data.FieldWidth) {

0 commit comments

Comments
 (0)