Skip to content

Add default virtual destructors for virtual classes - #218

Merged
David Peixotto (dmpots) merged 1 commit into
microsoft:masterfrom
antiagainst:wnon-virtual-dtor
Apr 12, 2017
Merged

David Peixotto (dmpots) merged 1 commit into
microsoft:masterfrom
antiagainst:wnon-virtual-dtor

Conversation

@antiagainst

Copy link
Copy Markdown
Contributor

This fixes compiler warnings generated by -Wnon-virtual-dtor.

cc David Neto (@dneto0) Ehsan (@ehsannas)

This fixes compiler warnings generated by -Wnon-virtual-dtor.
@msftclas

@antiagainst,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@dmpots
David Peixotto (dmpots) merged commit 7008b2a into microsoft:master Apr 12, 2017
@antiagainst
Lei Zhang (antiagainst) deleted the wnon-virtual-dtor branch April 12, 2017 21:36
Gregory Roth (pow2clk) added a commit to pow2clk/DirectXShaderCompiler that referenced this pull request May 28, 2018
Terminating classes may create a muscle memory for typing a
semicolon after a left-justified closed brace. Whatever the reason
to GCC's chagrine there were many functions ended with unnecessary
semicolons. Each one caused a warning. This removes them.

Fixes 285 GCC warnings

Contributes to google#206
Gregory Roth (pow2clk) added a commit to pow2clk/DirectXShaderCompiler that referenced this pull request May 30, 2018
Terminating classes may create a muscle memory for typing a
semicolon after a left-justified closed brace. Whatever the reason
to GCC's chagrine there were many functions ended with unnecessary
semicolons. Each one caused a warning. This removes them.

Fixes 285 GCC warnings

Contributes to google#206
Damyan Pepper (damyanp) pushed a commit to damyanp/DirectXShaderCompiler that referenced this pull request Mar 22, 2025
This specifies more of the basic language behaviors including
declarations and definitions.

HLSL has some small implicit differences from C & C++ for declarations
and definitions. Notably the handling of global variable declarations,
which are implcitly const and external unless `static` is specified.

* Add cbuffer and tbuffer to examples

cbuffer and tbuffer are odd. They declare global variables that are
read from a specific cbv or srv and allow defining layouts of the
buffers. The name of the buffer is exposed in reflection data, but not
declared as a name within the translation unit.

The names of variables within the buffers are declared as global names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants