- 04 Jan, 2019 1 commit
-
-
Cédric Traizet authored
-
- 03 Jan, 2019 1 commit
-
-
Cédric Traizet authored
-
- 20 Dec, 2018 1 commit
-
-
Cédric Traizet authored
-
- 12 Nov, 2018 1 commit
-
-
Guillaume Pasero authored
-
- 08 Nov, 2018 1 commit
-
-
Guillaume Pasero authored
-
- 30 Oct, 2018 1 commit
-
-
Daniel McInerney authored
-
- 07 Aug, 2018 1 commit
-
-
Victor Poughon authored
-
- 02 Aug, 2018 1 commit
-
-
Victor Poughon authored
-
- 18 Jul, 2018 1 commit
-
-
Victor Poughon authored
Before this commit, many files are using std::string without including <string>. It can work accidentally but causes issues when refactoring, especially if using operator <<() which is included implicitly by some compilers. To find guilty header files, I used: grep -l "^ *std::string" $(grep -L "#include <string>" $(find . -type f -name "*.h")) which finds all files containing "std::string" at the beginning of a line (usually a member or variable declaration), but not "#include <string>". And then this script to add the includes (plus some manual ediing): #!/usr/bin/env python3 import re import argparse def fix_file(filename, header): with open(filename, "r") as f: content = f.read() matches = list(re.finditer(r"(#include .*\n)\n", content)) if len(matches) == 0: print("no include!") sys.exit(-1) pos = matches[-1].end(1) open(filename, "w").write(content[:pos] + "#include <{}>\n".format(header) + content[pos:]) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--header', type=str, required=True) parser.add_argument('files', type=str, nargs='+') args = parser.parse_args() for filename in args.files: fix_file(filename, args.header)
-
- 25 Jun, 2018 2 commits
-
-
Manuel Grizonnet authored
-
Manuel Grizonnet authored
OTB followed since the beginning the ITK convention and use .txx extension for all template classes. Nevertheless, some development tools do not recognize .txx file extension. Other tool like GitHub can't do in-browser syntax highlighting for txx files I think. The root problem is the use of the txx which should be changed to hxx (or hpp). In 2011, after an in-depth discussion near April 20, 2011 on the Insight-Developers mailing list, ITK rename all txx files to hxx (and event prevent the push of .txx files with a pre-commit hook). It happens is major release v4. You can find some arguments in the discussion about the change and also in other projects related to ITK which applied the same modification, see for instance VXL: https://github.com/vxl/vxl/issues/209 This commit apply now the same modification for OTB. I understand that it will change some habit for developers and don't bring new features but I think that in general it is better to stay align with ITK guidelines. In my opinion, it always facilitate the use of OTB and ITK together if we share when we can the same code architecture, directory organization, naming conventions...
-
- 07 Jun, 2018 1 commit
-
-
Victor Poughon authored
-
- 28 May, 2018 1 commit
-
-
Victor Poughon authored
-
- 27 Apr, 2018 1 commit
-
-
Guillaume Pasero authored
-
- 19 Mar, 2018 1 commit
-
-
Antoine Regimbeau authored
-
- 16 Mar, 2018 2 commits
-
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
- 14 Mar, 2018 1 commit
-
-
Antoine Regimbeau authored
-
- 12 Mar, 2018 1 commit
-
-
Julien Michel authored
STY: Change ITK_OVERRIDE for override in whole code (find Modules -type f -exec sed -i 's/ITK_OVERRIDE/override/g' {} +)
-
- 09 Mar, 2018 1 commit
-
-
Antoine Regimbeau authored
-
- 02 Mar, 2018 3 commits
-
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
- 01 Mar, 2018 6 commits
-
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
Warning : static member is used, might be a bad design
-
Antoine Regimbeau authored
-
- 28 Feb, 2018 2 commits
-
-
Antoine Regimbeau authored
-
Antoine Regimbeau authored
-
- 10 Jul, 2017 1 commit
-
-
Guillaume Pasero authored
-
- 10 May, 2017 1 commit
-
-
Victor Poughon authored
-
- 05 Apr, 2017 1 commit
-
-
Guillaume Pasero authored
-
- 08 Mar, 2017 2 commits
-
-
Sébastien Dinot authored
-
Sébastien Dinot authored
-
- 03 Mar, 2017 1 commit
-
-
Manuel Grizonnet authored
-
- 02 Mar, 2017 1 commit
-
-
Manuel Grizonnet authored
-
- 18 Nov, 2016 1 commit
-
-
Julien Michel authored
-
- 20 Sep, 2016 1 commit
-
-
Manuel Grizonnet authored
-