Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flatpak-qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Bubke
flatpak-qt-creator
Commits
e73f43c7
Commit
e73f43c7
authored
14 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
coding-style: mention virtual inheritance
parent
b9cae782
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/api/coding-style.qdoc
+7
-2
7 additions, 2 deletions
doc/api/coding-style.qdoc
with
7 additions
and
2 deletions
doc/api/coding-style.qdoc
+
7
−
2
View file @
e73f43c7
...
...
@@ -537,9 +537,13 @@
\list
\o Do not use exceptions, unless you know what you do.
\o Do not use RTTI (Run-Time Type Information; that is, the typeinfo
struct, the dynamic_cast or the typeid operators, including throwing
exceptions), unless you know what you do.
\o Do not use virtual inheritance, unless you know what you do.
\o Use templates wisely, not just because you can.
Hint: Use the compile autotest to see whether a C++ feature is supported
...
...
@@ -559,12 +563,13 @@
either use the qdoc \c {\unicode} command or use the relevant macro.
For example: \c{\uuml} for \uuml.
\endlist
\o Use static keywords instead of anonymous namespaces whenever possible.
A name localized to the compilation unit with static is
guaranteed to have internal linkage. For names declared in anonymous
namespaces, the C++ standard unfortunately mandates external linkage
(ISO/IEC 14882, 7.1.1/6, or see various discussions about this on the gcc
mailing
lists).
(ISO/IEC 14882, 7.1.1/6, or see various discussions about this on the gcc
mailing
lists).
\endlist
\section3 Null Pointers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment