Skip to content

Commit

Permalink
Added support for *.hh as C++ files.
Browse files Browse the repository at this point in the history
Also added a TODO for handling *.h files optionally as C++ files rather than C
files, with accordingly different comment characters.
  • Loading branch information
mbrukman committed Nov 23, 2015
1 parent 91adc9c commit 05b93d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,16 @@ fi

case "$1" in

# TODO(mbrukman): in some projects, *.h are actually C++ files where users
# want to use C++ style "//" comments. How can we handle this flexibility?
*.c | *.h | *.css)
echo "/*"
printLicenseNonHashComment " *"
echo " */"
echo "/* ${TODO_COMMENT} */"
;;

*.cc | *.cpp | *.go | *.hpp | *.java | *.js | *.proto | *.rs | *.scala)
*.cc | *.cpp | *.go | *.hh | *.hpp | *.java | *.js | *.proto | *.rs | *.scala)
printLicenseNonHashComment "//"
printFileCommentTemplate "//"
;;
Expand Down

0 comments on commit 05b93d4

Please sign in to comment.