Skip to content

Commit

Permalink
fixed headers in cpp/hpp, added script to validate them
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Aug 22, 2016
1 parent ad8b655 commit c164f3f
Show file tree
Hide file tree
Showing 78 changed files with 466 additions and 163 deletions.
24 changes: 14 additions & 10 deletions far/DlgBuilder.hpp
Expand Up @@ -2,19 +2,11 @@
#define DLGBUILDER_HPP_E8B6F5CA_37A9_403A_A3F0_9ED7271B2BA7
#pragma once

#ifndef FAR_USE_INTERNALS
#define FAR_USE_INTERNALS
#endif // END FAR_USE_INTERNALS
#ifndef __cplusplus
#error C++ only
#endif

/*
DlgBuilder.hpp
DlgBuilder.hpp
Dynamic construction of dialogs for FAR Manager <%VERSION%>
Dynamic construction of dialogs for FAR Manager <%VERSION%>
*/

/*
Copyright © 2009 Far Group
All rights reserved.
Expand All @@ -40,8 +32,20 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EXCEPTION:
Far Manager plugins that use this header file can be distributed under any
other possible license with no implications from the above license on them.
*/

#ifndef FAR_USE_INTERNALS
#define FAR_USE_INTERNALS
#endif // END FAR_USE_INTERNALS

#ifndef __cplusplus
#error C++ only
#endif

// Элемент выпадающего списка в диалоге.
struct DialogBuilderListItem
{
Expand Down
3 changes: 3 additions & 0 deletions far/PluginA.cpp
@@ -1,4 +1,7 @@
/*
PluginA.cpp
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
All rights reserved.
Expand Down
3 changes: 3 additions & 0 deletions far/PluginA.hpp
Expand Up @@ -2,6 +2,9 @@
#define PLUGINA_HPP_174AA538_EA2A_43CC_B242_146456B477DB
#pragma once

/*
PluginA.hpp
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
Expand Down
1 change: 1 addition & 0 deletions far/RegExp.hpp
@@ -1,6 +1,7 @@
#ifndef REGEXP_HPP_18B41BD7_69F8_461A_8A81_069B447D5554
#define REGEXP_HPP_18B41BD7_69F8_461A_8A81_069B447D5554
#pragma once

/*
RegExp.hpp
Expand Down
3 changes: 2 additions & 1 deletion far/TaskBar.hpp
@@ -1,7 +1,6 @@
#ifndef TASKBAR_HPP_2522B9DF_D677_4AA9_8777_B5A1F588D4C1
#define TASKBAR_HPP_2522B9DF_D677_4AA9_8777_B5A1F588D4C1
#pragma once
#include "farwinapi.hpp"

/*
TaskBar.hpp
Expand Down Expand Up @@ -35,6 +34,8 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "farwinapi.hpp"

class taskbar: noncopyable
{
public:
Expand Down
6 changes: 6 additions & 0 deletions far/changelog
@@ -1,3 +1,9 @@
drkns 22.08.2016 11:43:23 +0200

1. Приведены в порядок шапки во всех cpp/hpp.

2. Добавлен скрипт для валидации п. 1.

drkns 20.08.2016 14:01:57 +0200 - build 4764

1. Уточнение 4757.1.
Expand Down
10 changes: 5 additions & 5 deletions far/codepage_selection.cpp
@@ -1,5 +1,5 @@
/*
codepage_selection.hpp
codepage_selection.cpp
*/
/*
Copyright © 1996 Eugene Roshal
Expand All @@ -10,12 +10,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
8 changes: 4 additions & 4 deletions far/codepage_selection.hpp
Expand Up @@ -14,12 +14,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
2 changes: 1 addition & 1 deletion far/colormix.hpp
Expand Up @@ -34,7 +34,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "colors.hpp"
#include "farcolor.hpp"

namespace colors
{
Expand Down
3 changes: 1 addition & 2 deletions far/common/algorithm.hpp
@@ -1,5 +1,4 @@

#ifndef ALGORITHM_HPP_BBD588C0_4752_46B2_AAB9_65450622FFF0
#ifndef ALGORITHM_HPP_BBD588C0_4752_46B2_AAB9_65450622FFF0
#define ALGORITHM_HPP_BBD588C0_4752_46B2_AAB9_65450622FFF0
#pragma once

Expand Down
12 changes: 6 additions & 6 deletions far/common/blob_view.hpp
@@ -1,24 +1,24 @@
#ifndef BLOB_VIEW_HPP_3707377A_7C4B_4B2E_89EC_6411A1988FB3
#ifndef BLOB_VIEW_HPP_3707377A_7C4B_4B2E_89EC_6411A1988FB3
#define BLOB_VIEW_HPP_3707377A_7C4B_4B2E_89EC_6411A1988FB3
#pragma once

/*
blob_view.hpp
*/
/*
Copyright © 2016 Far Group
Copyright © 2016 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
8 changes: 4 additions & 4 deletions far/common/compiler.hpp
Expand Up @@ -15,12 +15,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
12 changes: 6 additions & 6 deletions far/common/exception.hpp
@@ -1,24 +1,24 @@
#ifndef EXCEPTION_HPP_2CD5B7D1_D39C_4CAF_858A_62496C9221DF
#ifndef EXCEPTION_HPP_2CD5B7D1_D39C_4CAF_858A_62496C9221DF
#define EXCEPTION_HPP_2CD5B7D1_D39C_4CAF_858A_62496C9221DF
#pragma once

/*
exception.hpp
*/
/*
Copyright © 2016 Far Group
Copyright © 2016 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
8 changes: 4 additions & 4 deletions far/common/rel_ops.hpp
Expand Up @@ -13,12 +13,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
13 changes: 6 additions & 7 deletions far/common/string_literal.hpp
@@ -1,25 +1,24 @@

#ifndef STRING_LITERAL_HPP_102EA19D_CDD6_433E_ACD2_6D6E4022C273
#ifndef STRING_LITERAL_HPP_102EA19D_CDD6_433E_ACD2_6D6E4022C273
#define STRING_LITERAL_HPP_102EA19D_CDD6_433E_ACD2_6D6E4022C273
#pragma once

/*
string_literal.hpp
*/
/*
Copyright © 2016 Far Group
Copyright © 2016 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
8 changes: 4 additions & 4 deletions far/common/zip_view.hpp
Expand Up @@ -13,12 +13,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
2 changes: 1 addition & 1 deletion far/console.cpp
@@ -1,5 +1,5 @@
/*
Console.cpp
console.cpp
Console functions
*/
Expand Down
8 changes: 4 additions & 4 deletions far/copy_progress.cpp
Expand Up @@ -9,12 +9,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
8 changes: 4 additions & 4 deletions far/copy_progress.hpp
Expand Up @@ -13,12 +13,12 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Expand Down
6 changes: 5 additions & 1 deletion far/disable_warnings_in_std_begin.hpp
@@ -1,4 +1,8 @@
/*
// validator: no-include-guards
/*
disable_warnings_in_std_begin.hpp
*/
/*
Copyright © 2015 Far Group
All rights reserved.
Expand Down
6 changes: 5 additions & 1 deletion far/disable_warnings_in_std_end.hpp
@@ -1,4 +1,8 @@
/*
// validator: no-include-guards
/*
disable_warnings_in_std_end.hpp
*/
/*
Copyright © 2015 Far Group
All rights reserved.
Expand Down
6 changes: 5 additions & 1 deletion far/disabled_warnings.hpp
@@ -1,4 +1,8 @@
/*
// validator: no-include-guards
/*
disabled_warnings.hpp
*/
/*
Copyright © 2015 Far Group
All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion far/diskmenu.hpp
Expand Up @@ -3,7 +3,7 @@
#pragma once

/*
diskmenu.cpp
diskmenu.hpp
*/
/*
Copyright © 2016 Far Group
Expand Down
2 changes: 1 addition & 1 deletion far/editcontrol.hpp
Expand Up @@ -37,7 +37,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "edit.hpp"
#include "colors.hpp"
#include "farcolor.hpp"

class History;
class VMenu2;
Expand Down
2 changes: 1 addition & 1 deletion far/elevation.cpp
Expand Up @@ -37,7 +37,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "config.hpp"
#include "language.hpp"
#include "dialog.hpp"
#include "colors.hpp"
#include "farcolor.hpp"
#include "colormix.hpp"
#include "lasterror.hpp"
#include "privilege.hpp"
Expand Down

0 comments on commit c164f3f

Please sign in to comment.