Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
RuleLogging.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6// Public declaration of the library's logging categories. The category objects
7// themselves are defined in the library's TU (rulelogging.cpp); this
8// header simply re-exposes the declarations so header-only consumers (the
9// inline bridge in ContextRuleBridge.h) can emit warnings through the same
10// `org.phosphor.rule.*` channels the rest of the library uses.
11// (ExclusionRules moved its bodies into src/exclusionrules.cpp and includes
12// this header from the .cpp directly, not from its public header.)
13
14#include <QLoggingCategory>
15
16#include "phosphorrules_export.h"
17
18namespace PhosphorRules {
19
20// Trailing semicolons keep clang-format from continuation-indenting the
21// second category — `Q_DECLARE_LOGGING_CATEGORY` is statement-shaped but
22// the macro itself doesn't consume one, so two adjacent invocations
23// without trailing semicolons render with the second visually nested
24// under the first.
25PHOSPHORRULES_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcRule);
26PHOSPHORRULES_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcRuleEval);
27
28} // namespace PhosphorRules
Definition ActionParams.h:25
PHOSPHORRULES_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcRule)