OLD | NEW |
1 #!/usr/bin/python2.4 | |
2 # | |
3 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
4 # All rights reserved. | 2 # All rights reserved. |
5 # | 3 # |
6 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
7 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
8 # met: | 6 # met: |
9 # | 7 # |
10 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
11 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
12 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 language. | 180 language. |
183 """ | 181 """ |
184 | 182 |
185 if language == 'python': | 183 if language == 'python': |
186 return PythonScanner().Scan(filename) | 184 return PythonScanner().Scan(filename) |
187 elif language in ['C', 'C++', 'ObjC', 'ObjC++']: | 185 elif language in ['C', 'C++', 'ObjC', 'ObjC++']: |
188 return CppScanner().Scan(filename) | 186 return CppScanner().Scan(filename) |
189 | 187 |
190 # Something we don't handle | 188 # Something we don't handle |
191 return [] | 189 return [] |
OLD | NEW |