We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3d694 commit 93f9f63Copy full SHA for 93f9f63
clang-tools-extra/docs/clang-tidy/checks/fuchsia/statically-constructed-objects.rst
@@ -22,8 +22,8 @@ For example:
22
23
class C {
24
public:
25
- C(int Val) : Val(Val) {}
26
- constexpr C() : Val(0) {}
+ constexpr C(int Val) : Val(Val) {}
+ C(int Val1, int Val2) : Val(Val1+Val2) {}
27
28
private:
29
int Val;
@@ -38,6 +38,6 @@ For example:
38
static int i; // No warning, as it is trivial
39
40
extern int get_i();
41
- static C(get_i()) // Warning, as the constructor is dynamically initialized
+ static C c3(get_i());// Warning, as the constructor is dynamically initialized
42
43
See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en
0 commit comments