Skip to content

Commit d87f0af

Browse files
committed
Removed columns from clang output regex.
1 parent a558b03 commit d87f0af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,14 +1041,14 @@ private function getClangErrorFileList ($clang_output) {
10411041
/**
10421042
* Clang's output processing
10431043
*/
1044-
// Get all the 'filename.extension:line:column' elements. Include only those followed by an 'error' statement.
1044+
// Get all the 'filename.extension:line' elements. Include only those followed by an 'error' statement.
10451045
$tag_free_content = strip_tags($clang_output); // Remove color tags (as many as possible).
10461046

1047-
$clang_matches = preg_split('/(([!@#$%^&*()-+"\'<>?]*\w*)+\.\w+:\d+:\d+:)/', $tag_free_content, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
1047+
$clang_matches = preg_split('/(([!@#$%^&*()-+"\'<>?]*\w*)+\.\w+:\d+:)/', $tag_free_content, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
10481048

10491049
$elements = array();
10501050
foreach ($clang_matches as $key => $val ) {
1051-
if (preg_match('/(([!@#$%^&*()-+"\'<>?]*\w*)+\.\w+:\d+:\d+:)/', $val)
1051+
if (preg_match('/(([!@#$%^&*()-+"\'<>?]*\w*)+\.\w+:\d+:)/', $val)
10521052
&& array_key_exists($key + 1, $clang_matches)
10531053
&& (strpos($clang_matches[$key +1 ],"error:") !== false
10541054
|| strpos($clang_matches[$key +1 ],"note:") !== false

0 commit comments

Comments
 (0)