aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/src_location.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/src_location.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/src_location.h')
-rw-r--r--util/system/src_location.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/src_location.h b/util/system/src_location.h
index 12ba6e063e..2e35395c54 100644
--- a/util/system/src_location.h
+++ b/util/system/src_location.h
@@ -1,25 +1,25 @@
-#pragma once
-
-#include "src_root.h"
-
-#include <util/generic/strbuf.h>
-
-struct TSourceLocation {
+#pragma once
+
+#include "src_root.h"
+
+#include <util/generic/strbuf.h>
+
+struct TSourceLocation {
constexpr TSourceLocation(const TStringBuf f, int l) noexcept
- : File(f)
- , Line(l)
- {
- }
-
- TStringBuf File;
- int Line;
-};
-
+ : File(f)
+ , Line(l)
+ {
+ }
+
+ TStringBuf File;
+ int Line;
+};
+
// __SOURCE_FILE__ should be used instead of __FILE__
#if !defined(__NVCC__)
- #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.As<TStringBuf>())
+ #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.As<TStringBuf>())
#else
- #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.template As<TStringBuf>())
+ #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.template As<TStringBuf>())
#endif
-#define __LOCATION__ ::TSourceLocation(__SOURCE_FILE__, __LINE__)
+#define __LOCATION__ ::TSourceLocation(__SOURCE_FILE__, __LINE__)