1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

Meta: Add a script check the presence of "#pragma once" in header files

.. and make travis run it.

I renamed check-license-headers.sh to check-style.sh and expanded it so
that it now also checks for the presence of "#pragma once" in .h files.

It also checks the presence of a (single) blank line above and below the
"#pragma once" line.

I also added "#pragma once" to all the files that need it: even the ones
we are not check.
I also added/removed blank lines in order to make the script not fail.

I also ran clang-format on the files I modified.
This commit is contained in:
Emanuele Torre 2020-05-28 20:40:53 +02:00 committed by Andreas Kling
parent 8e151ff33e
commit 937d0be762
61 changed files with 150 additions and 42 deletions

View file

@ -24,14 +24,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#include "DNSAnswer.h"
#include "DNSQuestion.h"
#include <AK/Optional.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <AK/Optional.h>
class DNSResponse {
public:
@ -69,7 +68,7 @@ public:
Code code() const { return (Code)m_code; }
private:
DNSResponse() {}
DNSResponse() { }
u16 m_id { 0 };
u8 m_code { 0 };