Summary: | KDevelop must create pragma once with include guards | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Denis Pesotsky <denis> |
Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED INTENTIONAL | ||
Severity: | wishlist | CC: | maty78485 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.2.0 | ||
Platform: | unspecified | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Denis Pesotsky
2011-01-21 19:44:55 UTC
Why? Apart from this being _very_ compiler-specific as opposed to the include-guards I don't see a reason for doing both. The compiler that does know pragma's can work just fine with include-guards as well - afaik. > The compiler that does know pragma's can work just fine with include-guards as well
Did not know that. You mean, that all popular compilers (including gcc, vcc etc) support include guards optimisation if they have pragma once support?
I would give the user a choice - whether to use `#pragma once` or `#ifndef / #define` include guards. |